/* Pushix public site: what every public page shares (home page, guides, legal pages, "not found").
   Self-contained: the brand tokens, fonts and base styles are here too, so public pages never load the
   dashboard's stylesheet. Keep the tokens in step with pushix.css (same names and values).
   Page styles: home.css (home page) and legal.css (legal pages, guides, "not found"). */

/* ---------------------------------------------------------------- fonts (self-hosted, Latin subset) */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/instrument-sans-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; }
@font-face { font-family: "Instrument Sans"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url(../fonts/instrument-sans-latin-italic.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; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/unbounded-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; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/unbounded-rupee.woff2) format("woff2"); unicode-range: U+20B9; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(../fonts/jetbrains-mono-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; }
/* Fallbacks sized like the real fonts, so text does not jump when they arrive (metrics measured against Arial). */
@font-face { font-family: "Instrument Sans Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Helvetica"), local("Liberation Sans"), local("Roboto");
  size-adjust: 100.81%; ascent-override: 96.22%; descent-override: 24.8%; line-gap-override: 0%; }
@font-face { font-family: "Unbounded Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Helvetica"), local("Liberation Sans"), local("Roboto");
  size-adjust: 137.98%; ascent-override: 72.11%; descent-override: 17.76%; line-gap-override: 0%; }

/* ---------------------------------------------------------------- tokens (dark first, as in pushix.css) */
:root {
  color-scheme: dark;
  --night: #080c24; --deck: #0f1636; --deck-2: #141c42; --deck-3: #1b2552;
  --line: #29346a; --line-soft: #1b2450;
  --ink: #eef3ff; --ink-2: #aab4d6; --ink-3: #7a84aa;
  --cyan: #19d3ff; --blue: #2f6bff; --violet: #7b2cff; --magenta: #e040fb;
  --signal: linear-gradient(100deg, #19d3ff 0%, #2f6bff 36%, #7b2cff 70%, #e040fb 100%);
  --signal-v: linear-gradient(180deg, #19d3ff 0%, #2f6bff 45%, #7b2cff 75%, #e040fb 100%);
  --action: linear-gradient(100deg, #2a5cf5 0%, #5b34ff 62%, #7b2cff 100%);
  --action-glow: 0 0 0 1px rgba(25, 211, 255, 0.55), 0 8px 24px rgba(47, 107, 255, 0.38);
  --wash-line: rgba(25, 211, 255, 0.5);
  --series: #139ddc; --android: #1fa97a; --ios: #8a6dff; --web: #e8683f; --good: #4ad38a; --good-ink: #4ad38a;
  --link: #7fe3ff; --link-hover: #b9f0ff; --accent-ui: #19d3ff; --hover-line: #3a4a8c; --code-ink: #d9e2fb;
  --shadow-lg: rgba(2, 4, 16, 0.6);
  --font: "Instrument Sans", "Instrument Sans Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Unbounded", "Unbounded Fallback", "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --nav-h: 68px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --night: #f4f6fc; --deck: #ffffff; --deck-2: #f3f5fc; --deck-3: #e8ecf8;
  --line: #d6dcef; --line-soft: #e4e8f4;
  --ink: #0b1233; --ink-2: #434d74; --ink-3: #5f6990;
  --cyan: #0a8fc4;
  --wash-line: rgba(42, 92, 245, 0.45);
  --action-glow: 0 0 0 1px rgba(42, 92, 245, 0.35), 0 8px 22px rgba(47, 107, 255, 0.28);
  --series: #0b86c4; --android: #15905f; --ios: #7353f0; --web: #d6562b; --good: #15803d; --good-ink: #116330;
  --link: #2449e0; --link-hover: #1a36b0; --accent-ui: #2a5cf5; --hover-line: #b9c3e3; --code-ink: #1b2556;
  --shadow-lg: rgba(20, 30, 70, 0.16);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
* { -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--night); color: var(--ink); font: 400 16px/1.6 var(--font); font-feature-settings: "ss01"; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); overflow-wrap: break-word; }
p { margin: 0; }
img, svg { max-width: 100%; }
svg { flex: none; }
code, .mono { font-family: var(--mono); font-size: 0.86em; }
code { background: var(--deck-2); border: 1px solid var(--line-soft); border-radius: 5px; padding: 1px 5px; color: var(--code-ink); word-break: break-word; font-variant-ligatures: none; }
pre { margin: 0; }
[hidden] { display: none !important; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--accent-ui); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--blue) 32%, transparent); color: inherit; }
button, .btn, summary, label { -webkit-user-select: none; user-select: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
p a:not(.btn), dd a:not(.btn), .prose li a { font-weight: 600; }
/* Logos come in two versions; show the one for the current theme. */
.on-light { display: none !important; }
:root[data-theme="light"] .on-dark { display: none !important; }
:root[data-theme="light"] img.on-light { display: inline-block !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* buttons and lists shared with the dashboard look */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--deck-2); color: var(--ink); font: 600 14.5px/1 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .2s, transform .12s; }
.btn:hover { background: var(--deck-3); border-color: var(--hover-line); color: var(--ink); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn.primary { background: var(--action); border-color: transparent; color: #fff; }
.btn.primary:hover { background: var(--action); border-color: transparent; color: #fff; box-shadow: var(--action-glow); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--deck-2); color: var(--ink); }
.btn.big { height: 48px; padding: 0 24px; font-size: 15.5px; border-radius: 12px; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; color: var(--ink-2); font-size: 14px; }
.ticks .i { width: 16px; height: 16px; color: var(--good); margin-top: 3px; }
.p-android { --pc: var(--android); }
.p-ios { --pc: var(--ios); }
.p-web { --pc: var(--web); }

/* ---------------------------------------------------------------- page frame */
.site { font-size: 16px; line-height: 1.6; }
.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--deck); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.site h2 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.03em; }
.site h3 { font-size: 17px; letter-spacing: -0.005em; }
.site p { color: var(--ink-2); }

/* ---------------------------------------------------------------- nav */
.site-nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--night) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line-soft); }
.nav-row { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.site-brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; text-decoration: none; color: var(--ink); font-weight: 650; flex: none; }
.site-brand img.on-dark, .site-brand img.on-light { height: 21px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: 4px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 8px; }
.nav-links a, .nav-signin { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover, .nav-signin:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--blue) 12%, transparent); }
.nav-signin { display: inline-flex; align-items: center; min-height: 44px; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.theme-btn { appearance: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--deck); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; flex: none; }
.theme-btn:hover { color: var(--ink); }
.theme-btn svg.on-light { display: none; }
:root[data-theme="light"] .theme-btn svg.on-dark { display: none !important; }
:root[data-theme="light"] .theme-btn svg.on-light { display: block !important; }

/* phone and tablet menu: a <details>, so it opens without JavaScript */
.nav-menu { display: none; }
.nav-menu-btn { list-style: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--deck); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.nav-menu-btn::-webkit-details-marker { display: none; }
.nav-menu-btn .i { width: 22px; height: 22px; grid-area: 1 / 1; }
.nav-menu .i-close, .nav-menu[open] .i-open { display: none; }
.nav-menu[open] .i-close { display: block; }
.nav-menu[open] .nav-menu-btn { background: var(--deck-2); border-color: var(--hover-line); }
.nav-panel { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: 6px 16px 20px; background: var(--deck); border-bottom: 1px solid var(--line); box-shadow: 0 24px 50px var(--shadow-lg); max-height: calc(100vh - var(--nav-h)); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain; }
.nav-panel > a { display: flex; align-items: center; min-height: 52px; padding: 0 6px; border-bottom: 1px solid var(--line-soft); color: var(--ink); font-size: 17px; font-weight: 600; text-decoration: none; }
.nav-panel > a[aria-current="page"] { color: var(--accent-ui); }
.nav-panel > a:hover { color: var(--accent-ui); }
.nav-panel-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 18px; }
.theme-row { appearance: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 6px; border: 0; border-bottom: 1px solid var(--line-soft); background: none; color: var(--ink-2); font: 500 16px var(--font); cursor: pointer; text-align: left; width: 100%; }
.theme-row .i { color: var(--ink-3); }
:root[data-theme="light"] .theme-row .on-light { display: inline !important; }
:root[data-theme="light"] .theme-row svg.on-light { display: block !important; }

.site-foot { padding: 56px 0 30px; border-top: 1px solid var(--line-soft); background: radial-gradient(600px 200px at 10% 0%, color-mix(in srgb, var(--blue) 8%, transparent), transparent 70%); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand .site-brand img.on-dark, .foot-brand .site-brand img.on-light { height: 20px; width: auto; }
.foot-brand p { color: var(--ink-3); font-size: 14px; max-width: 34ch; line-height: 1.55; }
.foot-mail { color: var(--link) !important; font-weight: 600; font-size: 14px; justify-self: start; }
.foot-col { display: grid; gap: 4px; align-content: start; }
.site-foot .foot-col h2 { font-family: var(--font); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; line-height: 1.4; }
.site-foot a { color: var(--ink-2); text-decoration: none; font-size: 14px; transition: color .15s; justify-self: start; }
.foot-col a { padding: 4px 0; }
.site-foot a:hover { color: var(--ink); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--ink-3); }
.foot-bottom p { color: var(--ink-3); }
.foot-bottom .powered { display: flex; align-items: center; gap: 6px; }
.foot-bottom .powered a { font-weight: 650; font-size: 13.5px; background: var(--signal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-bottom .powered a:hover { text-decoration: underline; text-decoration-color: var(--violet); }
.foot-bottom .powered strong { color: var(--ink); }

/* ---------------------------------------------------------------- tablets and phones */
@media (max-width: 1040px) {
  .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .nav-actions { gap: 10px; }
}
@media (max-width: 680px) {
  :root { --nav-h: 62px; }
  .wrap { padding: 0 16px; }
  .nav-signin { display: none; }
  .nav-row { gap: 12px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 20px; }
  .foot-col a { display: flex; align-items: center; min-height: 40px; padding: 0; }
}
@media (max-width: 480px) {
  .nav-actions .theme-btn { display: none; }
  .nav-actions { gap: 8px; }
  .nav-cta { height: 44px; padding: 0 14px; }
}
@media (min-width: 481px) { .theme-row { display: none; } }
@media print { .nav-menu, .theme-btn { display: none !important; } }
