/* AIDO Apps root site: shared base (tokens, header, footer, buttons).
 * Tokens mirror AIDO Tools (pastuki/src/assets/style.css). Fonts are self-hosted copies. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
}

:root {
  --bg: #f8f6f0; --surface: #ffffff; --surface-2: #efece3;
  --ink: #11131f; --ink-2: #444759; --ink-3: #5f6275;
  --line: #dedacd;
  --accent: #1f3fd1; --accent-ink: #ffffff; --accent-soft: #e3e8ff;
  --hl: #ffd23f; --res-bg: #1f3fd1;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(17,19,31,.05), 0 14px 30px -20px rgba(17,19,31,.28);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage Grotesque", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --c-home: #1f3fd1; --c-home-bg: #e3e8ff;
  --c-work: #a8300f; --c-work-bg: #ffe0d6;
  --c-self: #6b4e00; --c-self-bg: #ffeaa8;
  --c-save: #0b6b45; --c-save-bg: #d3f5e3;
  --wrap: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f1c; --surface: #151933; --surface-2: #1e2347; --ink: #f1f2ff; --ink-2: #c6cae8; --ink-3: #a0a5cf;
    --line: #2b3163; --accent: #8fa3ff; --accent-ink: #0d0f1c; --accent-soft: #232a66; --res-bg: #2340d6;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 30px -20px rgba(0,0,0,.7);
    --c-home: #aab8ff; --c-home-bg: #232a66;
    --c-work: #ffb59f; --c-work-bg: #4a2218;
    --c-self: #ffd86b; --c-self-bg: #463a10;
    --c-save: #8ee6bb; --c-save-bg: #10382a;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { max-width: 100%; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; background: var(--accent); color: var(--accent-ink); padding: 12px 18px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; min-height: 44px; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand__mark { fill: var(--accent); }
.brand__chev { stroke: var(--accent-ink); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 8px 26px; }
.site-nav a { font-size: .92rem; color: var(--ink-2); text-decoration: none; padding: 12px 0; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-nav a.pill { color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: 9px 18px; font-weight: 600; }
.site-nav a.pill:hover { background: var(--surface-2); }
@media (max-width: 760px) {
  .site-header { position: static; }
  .site-header__inner { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 6px; padding-bottom: 14px; }
  .site-nav { margin-left: 0; width: 100%; flex-wrap: wrap; gap: 8px; }
  .site-nav a, .site-nav a.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .9rem; }
  .site-nav a.pill { background: var(--ink); color: var(--bg); border-color: var(--ink); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1.5px solid transparent; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--surface-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.site-footer__grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.site-footer__tag { color: var(--ink-3); font-size: .92rem; margin-top: 8px; }
.site-footer__links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-footer__links a { font-size: .92rem; color: var(--ink-2); text-decoration: none; padding: 12px 0; }
.site-footer__links a:hover { color: var(--accent); }
.site-footer__legal { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-3); }
@media (max-width: 620px) { .site-footer__links { margin-left: 0; } }
