/* ============================================================
   Maki — base.css
   Design tokens, reset, typography, shared components
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens ── */
:root {
  /* brand */
  --purple: #882DFF;
  --purple-deep: #6B1FD4;
  --purple-tint: #F4EDFF;
  --purple-line: #E2D3FB;

  /* neutrals */
  --ink: #17121F;
  --ink-2: #4F4965;
  --ink-3: #837DA0;
  --paper: #FDFCFF;
  --paper-2: #F7F5FB;
  --hairline: #EAE7F2;
  --white: #FFFFFF;

  /* status */
  --green: #0B9466;
  --green-tint: #E5F6EF;
  --amber: #C77414;
  --amber-tint: #FBF1E2;
  --red: #DE3D6D;
  --red-tint: #FCEBF1;

  /* type */
  --font-display: 'Schibsted Grotesk', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* misc */
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(23, 18, 31, 0.05);
  --shadow-md: 0 2px 6px rgba(23, 18, 31, 0.05), 0 12px 32px rgba(23, 18, 31, 0.06);
  --shadow-lg: 0 4px 12px rgba(23, 18, 31, 0.06), 0 28px 64px rgba(23, 18, 31, 0.12);
}

::selection { background: var(--purple); color: #fff; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Typography helpers ── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 18px;
}

.section-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--purple);
}

.section-head.center .section-tag::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--purple);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -1.4px;
  line-height: 1.06;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16.5px;
  color: var(--ink-2);
  line-height: 1.7;
}

.section-head { max-width: 640px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.1px;
  padding: 14px 26px;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s,
              transform 0.15s var(--ease), box-shadow 0.18s;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: var(--shadow-sm), 0 8px 24px rgba(136, 45, 255, 0.25);
}

.btn-primary:hover {
  background: var(--purple-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm), 0 12px 32px rgba(136, 45, 255, 0.32);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink-2);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  color: var(--purple);
  border-color: var(--purple-line);
  background: var(--purple-tint);
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(253, 252, 255, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(253, 252, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--hairline);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 11px;
  border: 1px solid var(--hairline);
  background: #fff;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.4px;
}

.nav-links { display: flex; align-items: center; gap: 2px; }

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 9px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover { color: var(--ink); background: var(--paper-2); }

.nav-links .btn { margin-left: 12px; padding: 10px 20px; font-size: 14px; }

/* .nav-links a rule is more specific than .btn-primary — re-assert button colors */
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; background: var(--purple-deep); }

.nav-burger {
  display: none;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 20px 16px;
  background: rgba(253, 252, 255, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
}

.nav-mobile a {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 13px 10px;
  border-radius: 10px;
}

.nav-mobile a:active { background: var(--paper-2); }
.nav-mobile.open { display: flex; }

/* ── Store badges (shared) ── */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  background: var(--ink);
  color: #fff;
  padding: 13px 24px;
  border-radius: 14px;
  text-decoration: none;
  min-width: 192px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}

.store-badge:hover {
  transform: translateY(-2px);
  background: #241D33;
  box-shadow: 0 14px 36px rgba(23, 18, 31, 0.28);
}

.store-badge-icon { width: 26px; height: 26px; flex-shrink: 0; }

.store-badge-text { display: flex; flex-direction: column; line-height: 1; }

.store-badge-small {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 5px;
}

.store-badge-big {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--hairline);
  background: var(--paper);
  padding: 68px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}

.footer-desc {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.75;
  margin-top: 16px;
  max-width: 300px;
}

.footer-stores { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

.footer-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--hairline);
  background: var(--white);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, background 0.2s, transform 0.18s;
}

.footer-store:hover {
  border-color: var(--purple-line);
  background: var(--purple-tint);
  transform: translateY(-2px);
}

.footer-store svg { width: 17px; height: 17px; flex-shrink: 0; }

.footer-store-text { display: flex; flex-direction: column; line-height: 1; }

.footer-store-small {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}

.footer-store-big { font-size: 13px; font-weight: 700; letter-spacing: -0.2px; }

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 14.5px;
  color: var(--ink-2);
  text-decoration: none;
  margin-bottom: 12px;
  width: fit-content;
  transition: color 0.18s;
}

.footer-col a:hover { color: var(--purple); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.4px;
  color: var(--ink-3);
}

.footer-links { display: flex; gap: 22px; }

.footer-links a {
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.18s;
}

.footer-links a:hover { color: var(--ink); }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in { opacity: 1; transform: none; }

.d1 { transition-delay: 0.07s; }
.d2 { transition-delay: 0.14s; }
.d3 { transition-delay: 0.21s; }
.d4 { transition-delay: 0.28s; }

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── Shared responsive ── */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
