/* ============================================================
   MeowShare — marketing site design system (web.meowshare.app)
   Visual language: white / silver / soft titanium, near-black
   typography, sparse warm amber-copper accent, radar-signal motif.
   Type: Schibsted Grotesk (display) + native system UI (body).
   ============================================================ */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("assets/fonts/schibsted-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("assets/fonts/schibsted-grotesk-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("assets/fonts/schibsted-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;

  /* Surface */
  --bg: oklch(0.982 0.0025 85);          /* silver-white, warm */
  --bg-2: oklch(0.965 0.0035 85);        /* soft titanium band */
  --bg-3: oklch(0.945 0.0045 85);        /* recessed wells */
  --surface: oklch(1 0 0);
  --glass: oklch(1 0 0 / 0.74);

  /* Ink */
  --ink: oklch(0.16 0.014 70);
  --ink-2: oklch(0.36 0.012 70);
  --muted: oklch(0.47 0.012 70);
  --muted-on-ink: oklch(0.8 0.008 85);

  /* Lines */
  --line: oklch(0.90 0.005 85);
  --line-2: oklch(0.84 0.008 85);

  /* Accent (copper amber, from the product) */
  --accent: oklch(0.60 0.10 40);
  --accent-deep: oklch(0.47 0.10 40);
  --accent-soft: oklch(0.60 0.10 40 / 0.12);
  --accent-halo: oklch(0.65 0.17 60 / 0.35);

  --online: oklch(0.52 0.11 154);
  --online-soft: oklch(0.52 0.11 154 / 0.12);

  /* Radar / brand-object surfaces (the app's ivory field language) */
  --ivory: oklch(0.953 0.008 80);
  --ivory-2: oklch(0.93 0.0135 77);
  --ivory-3: oklch(0.9 0.02 74);
  --ring-soft: oklch(0.83 0.016 74 / 0.5);
  --ring-soft-2: oklch(0.83 0.016 74 / 0.26);
  --ring-ink: oklch(0.92 0.015 80 / 0.09);
  --scan: oklch(0.62 0.105 45 / 0.5);
  --glass-chip: oklch(1 0 0 / 0.72);

  --font-display: "Schibsted Grotesk", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1160px;
  --gutter: clamp(20px, 4.5vw, 40px);
  --sec: clamp(72px, 9vw, 120px);        /* section rhythm */
  --r-sm: 8px;                            /* cards: 8px max */
  --r-md: 14px;
  --r-lg: 22px;                           /* product window only */
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.04), 0 6px 22px oklch(0.2 0.01 70 / 0.07);
  --shadow-md: 0 2px 4px oklch(0 0 0 / 0.05), 0 18px 46px oklch(0.2 0.01 70 / 0.12);
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
svg.route-line { stroke-width: 1.3; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
figure { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--accent-soft); }

/* ---------- Typography ---------- */

.font-display, h1, h2, h3, .eyebrow, .btn, .stat b { font-family: var(--font-display); }

body, p, li, td, th { font-family: var(--font-body); }

h1, h2, h3 { color: var(--ink); font-weight: 600; text-wrap: balance; }

h1 {
  font-size: 2.42rem;
  line-height: 1.05;
  letter-spacing: -0.018em;
  font-weight: 600;
}
h2 {
  font-size: 1.85rem;
  line-height: 1.14;
  letter-spacing: -0.014em;
}
h3 {
  font-size: 1.16rem;
  line-height: 1.42;
  letter-spacing: -0.005em;
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  width: 26px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.lede {
  max-width: 58ch;
  color: var(--ink-2);
  font-size: 1.12rem;
  line-height: 1.62;
}

.prose p { margin: 0 0 1em; color: var(--ink-2); max-width: 66ch; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent-deep); text-decoration: underline; text-decoration-color: oklch(0.6 0.1 40 / 0.45); text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }

@media (min-width: 620px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  .lede { font-size: 1.18rem; }
}
@media (min-width: 920px) {
  h1 { font-size: 3.6rem; }
  h2 { font-size: 2.55rem; }
}
@media (min-width: 1240px) {
  h1 { font-size: 4.05rem; line-height: 1.03; }
  h2 { font-size: 2.75rem; }
}

/* ---------- Layout primitives ---------- */

.wrap {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.wrap-narrow { width: min(820px, 100% - 2 * var(--gutter)); margin-inline: auto; }

section { position: relative; }

.section { padding-block: var(--sec); }
.section-head { max-width: 720px; margin-bottom: clamp(38px, 5vw, 64px); }
.section-head p { margin-top: 16px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .eyebrow { gap: 0; }

@media (max-width: 619px) {
  .section-head.center .eyebrow { font-size: 0.7rem; letter-spacing: 0.13em; }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skiplink {
  position: absolute;
  top: -64px; left: 16px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skiplink:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.14);
}
.btn--primary:hover {
  background: oklch(0.24 0.018 70);
  border-color: oklch(0.24 0.018 70);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px oklch(0.2 0.02 70 / 0.22), 0 10px 26px oklch(0.2 0.02 70 / 0.14);
}
.btn--primary:active { transform: translateY(0); box-shadow: none; }

.btn--ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--ink);
}
.btn--ghost:hover {
  background: oklch(0.16 0.014 70 / 0.05);
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:active { background: oklch(0.16 0.014 70 / 0.09); }

.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.9rem; }
.btn--wide { width: 100%; }

/* Dark band buttons (final CTA on ink background) */
.dark .btn--primary {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.2);
}
.dark .btn--primary:hover {
  background: oklch(0.97 0.004 85);
  border-color: oklch(0.97 0.004 85);
  color: var(--ink);
  box-shadow: 0 6px 18px oklch(0 0 0 / 0.28);
}
.dark .btn--ghost {
  background: transparent;
  border-color: oklch(1 0 0 / 0.34);
  color: #fff;
}
.dark .btn--ghost:hover {
  background: oklch(1 0 0 / 0.08);
  border-color: #fff;
  color: #fff;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.link-arrow:hover { border-color: var(--accent); color: var(--ink); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(0.982 0.0025 85 / 0.78);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: oklch(0.982 0.0025 85 / 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand img { width: 25px; height: 25px; border-radius: 6.5px; }
.brand strong { font-family: var(--font-display); font-size: 1.14rem; font-weight: 700; letter-spacing: -0.01em; }
.brand:hover strong { color: var(--ink); }
.brand .brand-route {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.main-nav { display: none; align-items: center; gap: 2px; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  display: inline-block;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.94rem;
  font-weight: 550;
  text-decoration: none;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: oklch(0.16 0.014 70 / 0.05); }
.nav-links a[aria-current="page"] { color: var(--ink); background: oklch(0.16 0.014 70 / 0.07); }
.nav-links a[aria-current="page"]:hover { background: oklch(0.16 0.014 70 / 0.09); }

.header-cta { display: none; }
.header-cta .btn { min-height: 40px; padding: 0 18px; font-size: 0.9rem; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border-radius: 10px;
  color: var(--ink);
}
.nav-toggle:hover { background: oklch(0.16 0.014 70 / 0.05); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle svg path {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.24s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nl-a { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nl-b { transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: oklch(0.982 0.0025 85 / 0.97);
  padding: 10px var(--gutter) 22px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; display: grid; gap: 2px; }
.mobile-nav a {
  display: block;
  padding: 13px 10px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 550;
  text-decoration: none;
}
.mobile-nav a:hover { background: oklch(0.16 0.014 70 / 0.05); }
.mobile-nav a[aria-current="page"] { background: oklch(0.16 0.014 70 / 0.07); }
.mobile-nav .mobile-cta { margin-top: 14px; }
.mobile-nav .mobile-cta .btn { width: 100%; }

@media (min-width: 960px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .header-cta { display: block; margin-left: 8px; }
  .brand { margin-right: 0; }
}
