/* Kopnota marketing site · fonts, colour tokens, base, buttons, header */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Brand, taken from the app icon */
  --navy-950: #060B33;
  --navy-900: #0B1452;
  --navy-800: #14217A;
  --blue: #3355E6;
  --blue-soft: #6E86F2;
  --mint: #2DD497;
  --mint-deep: #15A774;
  --teal: #22B8B0;
  --amber: #F2A33A;
  --violet: #8A6CF0;
  --red: #E5484D;

  --bg: #F5F7FE;
  --bg-alt: #ECF0FC;
  --surface: #FFFFFF;
  --surface-2: #F3F5FC;
  --ink: #0D1433;
  --ink-2: #2A3358;
  --muted: #5B6489;
  --line: rgba(13, 20, 51, .10);
  --line-strong: rgba(13, 20, 51, .18);
  --shadow: 0 1px 2px rgba(11, 20, 82, .06), 0 12px 32px -12px rgba(11, 20, 82, .22);
  --shadow-lg: 0 2px 4px rgba(11, 20, 82, .06), 0 30px 70px -24px rgba(11, 20, 82, .38);
  --accent: var(--blue);
  --accent-ink: #FFFFFF;
  --link: #2446D8;

  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);

  --step--1: clamp(.82rem, .8rem + .1vw, .88rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.08rem + .35vw, 1.32rem);
  --step-2: clamp(1.45rem, 1.25rem + .9vw, 1.95rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.9vw, 3rem);
  --step-4: clamp(2.4rem, 1.7rem + 3.4vw, 4.4rem);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070B2A;
    --bg-alt: #0A1036;
    --surface: #10183F;
    --surface-2: #151F4D;
    --ink: #EEF1FF;
    --ink-2: #C9D0F2;
    --muted: #9CA6D4;
    --line: rgba(220, 228, 255, .10);
    --line-strong: rgba(220, 228, 255, .20);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 34px 80px -26px rgba(0, 0, 0, .75);
    --link: #93A7FF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070B2A; --bg-alt: #0A1036; --surface: #10183F; --surface-2: #151F4D;
  --ink: #EEF1FF; --ink-2: #C9D0F2; --muted: #9CA6D4;
  --line: rgba(220, 228, 255, .10); --line-strong: rgba(220, 228, 255, .20);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 34px 80px -26px rgba(0, 0, 0, .75);
  --link: #93A7FF;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-0)/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.06; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: .05em .4em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: var(--step--1); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 22px -10px rgba(51, 85, 230, .8); }
.btn-primary:hover { background: #2747D2; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost.on-dark:hover { background: rgba(255, 255, 255, .08); }
.btn-store { background: #05081F; color: #fff; min-height: 56px; padding: 0 22px 0 18px; border-radius: 14px; border-color: rgba(255, 255, 255, .16); text-align: left; }
.btn-store svg { width: 26px; height: 26px; }
.btn-store span { display: flex; flex-direction: column; font: 700 1.2rem/1.05 var(--font-display); }
.btn-store small { font: 500 .7rem/1.2 var(--font-body); opacity: .8; }
.btn-store.is-soon { cursor: default; }
.btn-store.is-soon:hover { transform: none; }
.link-btn { background: none; border: 0; color: var(--link); font-weight: 600; cursor: pointer; padding: 8px 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 750 1.2rem/1 var(--font-display); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand img { border-radius: 8px; box-shadow: 0 2px 8px rgba(11, 20, 82, .25); }
.studio-link { margin-left: -6px; padding-left: 14px; border-left: 1px solid var(--line-strong); font-size: var(--step--1); color: var(--muted); text-decoration: none; white-space: nowrap; }
.studio-link:hover { color: var(--ink); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: var(--step--1); font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a.active { color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, transparent); }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span { width: 16px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
/* While the header sits over the dark hero it uses light text. */
.site-header:not(.scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header:not(.scrolled) .brand,
.site-header:not(.scrolled) .nav a { color: #fff; }
.site-header:not(.scrolled) .nav a:hover { background: rgba(255, 255, 255, .1); }
.site-header:not(.scrolled) .nav a.active { color: #7CF0C1; background: rgba(45, 212, 151, .12); }
.site-header:not(.scrolled) .studio-link { color: #B9C3F2; border-left-color: rgba(255, 255, 255, .25); }
.site-header:not(.scrolled) .studio-link:hover { color: #fff; }
.site-header:not(.scrolled) .menu-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); }
.site-header:not(.scrolled) .menu-btn span { background: #fff; }
.mobile-nav { display: grid; padding: 6px var(--gutter) 16px; border-top: 1px solid var(--line); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 12px 4px; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
@media (max-width: 960px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 520px) {
  .studio-link { display: none; }
  .header-cta { display: none; }
  .menu-btn { margin-left: auto; }
}

/* Extra colours for the newer sections */
:root { --pink: #EC4899; --teal-2: #14B8A6; --orange: #F97316; --rainbow: linear-gradient(90deg, #F43F5E, #F59E0B, #10B981, #06B6D4, #6366F1, #A855F7); }
