/* Shared styles for apps.newperk.ltd. Colours, font and header/footer follow the main site newperk.ltd (light only, Montserrat, navy). */
:root {
  --navy: #0B1F33; --navy-dark: #122B45; --white: #ffffff;
  --gray-light: #E5E7EB; --gray-100: #f3f4f6; --gray-600: #4B5563; --gray-700: #374151; --gray-900: #111827;
  /* aliases used by product pages */
  --bg: var(--white); --panel: var(--white); --text: var(--gray-700); --muted: var(--gray-600); --line: var(--gray-light); --brand: var(--navy); --brand-soft: var(--gray-100);
}
/* Montserrat (SIL OFL 1.1, fonts/OFL.txt), self-hosted so pages load nothing from Google */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/montserrat-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; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--white); color: var(--gray-700); font: 16px/1.6 'Montserrat', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--navy); font-weight: 700; }
a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--navy-dark); }

/* Header, as on newperk.ltd */
.top { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 1px solid var(--gray-light); }
.top .in { max-width: 1152px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; }
.logo-icon { width: 32px; height: 32px; object-fit: contain; }
.logo-text { font-size: 18px; font-weight: 700; color: var(--navy); letter-spacing: -0.025em; }
.logo-sub { font-size: 18px; font-weight: 500; color: var(--gray-600); }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; font-weight: 500; }
.top nav a { color: var(--gray-700); text-decoration: none; }
.top nav a:hover { color: var(--navy); }

/* Content pages */
main { max-width: 896px; margin: 0 auto; padding: 48px 24px 64px; }
main.wide { max-width: 1152px; }
main h1 { font-size: clamp(28px, 4.5vw, 36px); line-height: 1.2; margin: 0 0 12px; }
main h2 { font-size: 22px; line-height: 1.3; margin: 36px 0 10px; }
.muted { color: var(--gray-600); }
.lead { font-size: 18px; color: var(--gray-700); margin: 0 0 32px; }
.box { background: var(--gray-100); border-left: 3px solid var(--navy); padding: 14px 18px; border-radius: 4px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--gray-light); }
th { color: var(--navy); }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.product { display: flex; gap: 16px; background: var(--white); border: 1px solid var(--gray-light); border-radius: 4px; padding: 24px; color: var(--gray-700); text-decoration: none; transition: box-shadow .2s ease; }
.product:hover { box-shadow: 0 8px 24px rgba(11, 31, 51, .08); color: var(--gray-700); }
.product img { width: 56px; height: 56px; border-radius: 22%; flex: none; }
.product h3 { margin: 0 0 6px; font-size: 20px; }
.product p { margin: 0; color: var(--gray-600); font-size: 15px; }

/* Footer, as on newperk.ltd */
.site-footer { border-top: 1px solid var(--gray-light); padding: 40px 24px 48px; text-align: center; font-size: 14px; color: var(--gray-600); }
.site-footer .footer-logo { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; text-decoration: none; }
.site-footer .footer-logo .logo-icon { width: 24px; height: 24px; }
.site-footer .footer-logo .logo-text { font-size: 14px; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--gray-600); }
.site-footer a:hover { color: var(--navy); }

/* Anchors land below the sticky header */
[id] { scroll-margin-top: 80px; }
