:root {
  --seed: #075aa8;
  --cta: #ff9824;
  --cta-ink: #10243a;
  --ink: #122033;
  --muted: #5c6b74;
  --line: #d6e2ea;
  --paper: #f4f8fc;
  --surface: #ffffff;
  --surface-2: #eef4f8;
  --nav-bg: rgba(255,255,255,0.72);
  --shadow: 0 18px 50px rgba(7, 90, 168, 0.12);
  --ok: #1b8a46;
}
html[data-theme="dark"] {
  --seed: #6ba3e0;
  --cta: #dfa24a;
  --cta-ink: #1a1206;
  --ink: #d7e0ee;
  --muted: #9eafb4;
  --line: #2a3a55;
  --paper: #0b1220;
  --surface: #151d2e;
  --surface-2: #1e2a40;
  --nav-bg: rgba(11, 18, 32, 0.78);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --ok: #74b894;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Sora", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: min(1160px, calc(100% - 2rem)); margin-inline: auto; }
.serif { font-family: "Fraunces", Georgia, serif; letter-spacing: -0.03em; }

.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.brand img {
  width: 48px; height: 48px; border-radius: 14px;
  box-shadow: 0 8px 18px rgba(7,90,168,.2);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-size: 1.42rem; font-weight: 800; letter-spacing: -0.04em; }
.brand-text span { font-size: 0.72rem; font-weight: 600; color: var(--muted); }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem 1.15rem; margin-left: auto; font-size: 0.92rem; font-weight: 600; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); display: grid; place-items: center; font-size: 1.05rem;
  flex: 0 0 44px;
}
.theme-btn { position: relative; overflow: hidden; }
.theme-btn svg {
  width: 18px; height: 18px; grid-area: 1 / 1;
  transition: transform .5s cubic-bezier(.22,1,.36,1), opacity .35s ease;
}
html[data-theme="dark"] .theme-btn .icon-sun {
  transform: rotate(90deg) scale(.35); opacity: 0;
}
html:not([data-theme="dark"]) .theme-btn .icon-moon {
  transform: rotate(-90deg) scale(.35); opacity: 0;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }
html.no-vt body,
html.no-vt .nav,
html.no-vt .icon-btn,
html.no-vt footer,
html.no-vt .legal .card,
html.no-vt .legal .mission,
html.no-vt .legal th,
html.no-vt .legal td {
  transition: background-color .45s ease, color .4s ease, border-color .4s ease, box-shadow .45s ease;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 50px; padding: 0.75rem 1.2rem; border-radius: 14px;
  font-weight: 700; font-size: 0.92rem; border: 0;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-cta { background: var(--cta); color: var(--cta-ink); box-shadow: 0 10px 28px color-mix(in srgb, var(--cta) 40%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }

.store-link {
  display: inline-flex; align-items: center;
  height: 56px; transition: transform .22s ease, box-shadow .22s ease;
}
.store-link img { height: 56px; width: auto; display: block; }
.store-link:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,.18); }
html[data-theme="dark"] .store-link {
  background: #fff;
  padding: 1px;
  height: auto;
  border-radius: 8px;
  line-height: 0;
}
html[data-theme="dark"] .store-link img { border-radius: 7px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.label { font-size: 0.74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--seed); margin-bottom: 0.55rem; }

footer.site-foot { padding: 2.2rem 0 2.8rem; color: var(--muted); font-size: 0.86rem; margin-top: auto; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.foot a { font-weight: 700; color: var(--seed); }
.visits {
  margin-top: 1.1rem; display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.4rem 0.85rem; font-weight: 600;
}
.visits b { color: var(--ink); font-variant-numeric: tabular-nums; }

.legal {
  width: min(760px, calc(100% - 2rem));
  margin: 2rem auto 3rem;
  line-height: 1.65;
}
.legal h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.12;
  margin-bottom: 0.55rem;
}
.legal .sub { color: var(--muted); margin-bottom: 1.4rem; }
.legal h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.7rem;
  color: var(--seed);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}
.legal h3 { font-size: 1.02rem; margin: 1.4rem 0 0.45rem; }
.legal p, .legal li { margin: 0.45rem 0; }
.legal ul, .legal ol { padding-left: 1.25rem; }
.legal a {
  color: var(--seed);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal code {
  font-size: 0.85em;
  background: var(--surface-2);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.legal .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem 1.3rem;
  margin: 1rem 0;
}
.legal .note {
  font-size: 0.92rem;
  color: var(--muted);
  background: var(--surface);
  border-left: 4px solid var(--ok);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
}
.legal .mission {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.3rem;
  margin: 1.4rem 0;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}
.legal th, .legal td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  vertical-align: top;
}
.legal th { background: var(--surface-2); font-weight: 600; color: var(--seed); text-align: start; }
.legal .badge {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.28rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--seed);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.get-fallback {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.25rem;
}
.get-fallback h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0.4rem 0 0.6rem; }
.get-fallback p { color: var(--muted); margin-bottom: 1.2rem; }

@media (max-width: 1080px) {
  .nav-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand actions" "links links";
    align-items: center;
    column-gap: 0.6rem;
    row-gap: 0.45rem;
    min-height: 0;
    padding-block: 0.65rem;
  }
  .brand { grid-area: brand; }
  .nav-actions { grid-area: actions; }
  .nav-links {
    grid-area: links;
    margin: 0;
    width: 100%;
    gap: 0.2rem 0.9rem;
    font-size: 0.82rem;
  }
  .nav-actions .icon-btn,
  .nav-actions .btn {
    height: 40px;
    min-height: 40px;
  }
  .nav-actions .icon-btn {
    width: 40px;
    flex-basis: 40px;
    border-radius: 11px;
  }
  .nav-actions .btn {
    padding: 0 0.85rem;
    font-size: 0.78rem;
    border-radius: 11px;
  }
}
@media (max-width: 720px) {
  .nav-inner { min-height: 0; }
  .brand img { width: 42px; height: 42px; border-radius: 12px; }
  .brand-text b { font-size: 1.22rem; }
}
@media (max-width: 420px) {
  .brand-text span { display: none; }
  .wrap, .legal { width: min(1160px, calc(100% - 1.1rem)); }
  .nav-actions .icon-btn { width: 40px; height: 40px; flex-basis: 40px; }
  .nav-actions .btn { min-height: 40px; height: 40px; padding: 0 0.75rem; font-size: 0.76rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
