/* Budgeri marketing site.
   Palette + elevation mirror the app's design system (Dusk Periwinkle, anchored
   cards). Dark-only — same token values as Budgeri.Web/src/index.css. */

/* Self-hosted Inter (see #1864 — mirrors Budgeri.Web/src/index.css's
 * @font-face, reusing the same OFL-licensed variable woff2, copied to
 * marketing/fonts/inter/ since marketing has its own static-asset pipeline).
 * Google's default `latin` subset covers the Latin script only — fine, since
 * the site ships English copy only, same as the subset Google served by
 * default. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/inter/Inter-Variable-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  /* Dusk Periwinkle (mirrors the app's `--budgeri-*` tokens). */
  --bg: #222849;
  --card: #32385c;
  --ink: #f0f2ff;
  --muted: #b0b6d4;
  --line: #4a5280;
  --accent: #9aa5ff;
  --accent-strong: #7c88f5;
  --soft: #3a4270;
  --pos: #5eead4;
  --neg: #fb7185;

  --grad-1: #3a4270;
  --grad-2: #2a3158;
  --grad-3: #222849;
  --header-bg: rgba(34, 40, 73, 0.62);
  --header-bg-solid: var(--bg);

  --maxw: 1120px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 18px 38px -18px rgba(0, 0, 0, 0.55);
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: radial-gradient(1100px 620px at 50% -12%, var(--grad-1) 0%, var(--grad-2) 42%, var(--grad-3) 100%)
      fixed,
    var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  transition: background-color 0.2s ease, color 0.2s ease;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-strong);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(92, 102, 232, 0.75);
}
.btn-primary:hover {
  background: #4a54d0;
}

/* ---------- brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}
/* The budgerigar mark, drawn straight on the page (no tile behind it). Same
   geometry as favicon.svg / brand/icons/; the eye takes the page background. */
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
}
.brand-mark svg {
  width: 100%;
  height: 100%;
}
.brand-mark .mark-body {
  fill: var(--accent);
}
.brand-mark .mark-wing {
  fill: var(--ink);
}
.brand-mark .mark-eye {
  fill: var(--bg);
}
.brand-name {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--header-bg);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--ink);
}
.header-cta {
  flex-shrink: 0;
}

/* ---------- intro text ---------- */
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.lede {
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 38ch;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 0.95rem;
  font-weight: 600;
}
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--ink);
}
.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  width: 100%;
}

/* ---------- responsive ----------
   Three tiers: desktop (default), tablet (<= 980px), phone (<= 600px). Tweaks
   below keep the header from crowding and avoid any horizontal overflow on
   small screens. */

/* tablet & down */
@media (max-width: 980px) {
  .lede {
    max-width: none;
  }
}

/* hide the in-page nav before the header gets tight; brand + toggle + CTA stay */
@media (max-width: 820px) {
  .site-nav {
    display: none;
  }
}

/* phone */
@media (max-width: 600px) {
  .container {
    padding-inline: 16px;
  }
  .header-inner {
    gap: 12px;
    height: 60px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-nav {
    margin-left: 0;
    flex-wrap: wrap;
  }
}

/* very small phones: reclaim header space */
@media (max-width: 380px) {
  .brand-name {
    display: none;
  }
  .header-cta {
    padding: 9px 14px;
  }
}

/* ---------- text pages (privacy policy, other legal pages) ---------- */
.page-main {
  padding: clamp(36px, 5vw, 56px) 0 clamp(56px, 8vw, 96px);
}
/* Text column under the full-width header and footer, centred at reading width. */
.page-column {
  max-width: 720px;
  margin-inline: auto;
}
.page-breadcrumb {
  margin: 0 0 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.page-breadcrumb a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-breadcrumb a:hover {
  color: var(--ink);
}
.page-article {
  padding-top: 8px;
}
.page-article h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.page-article p,
.page-article li {
  color: var(--muted);
  font-size: 1.02rem;
}
.page-article p {
  margin: 0 0 14px;
}
.page-article a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-article a:hover {
  color: var(--ink);
}
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  body {
    transition: none;
  }
}

/* ---------- under-construction landing page ---------- */
.construction-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.construction {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}
.construction-mark {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 28px;
}
.construction-mark svg {
  width: 100%;
  height: 100%;
}
.construction-mark .mark-body {
  fill: var(--accent);
}
.construction-mark .mark-wing {
  fill: var(--ink);
}
.construction-mark .mark-eye {
  fill: var(--bg);
}
.construction h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
}
.construction .lede {
  margin-inline: auto;
}
.construction-page .header-cta {
  margin-left: auto;
}
