/* Нутаг брэнд — landing. Өнгө: brand/tokens.json (түр брэнд). */

@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/geologica-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/geologica-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/geologica-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --bg: #F6F5F0;
  --surface: #FFFFFF;
  --ink: #17201B;
  --muted: #5C665F;
  --line: #D6D5CB;
  --green: #1F5A3D;
  --green-soft: #E9F2EC;
  --accent-text: #9A5210;
  --accent-soft: #FCF1E0;
  --focus: #143D2A;

  /* Нутгийн зураг (hero) болон ногоон хэсгүүд — хоёр горимд ижил */
  --sky: #1F5A3D;
  --ridge: #3C8A63;
  --sun: #E0902A;
  --deep: #143D2A;
  --on-green: #F6F5F0;
  --on-green-muted: #C5D9CC;

  --font: "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1612;
    --surface: #18221C;
    --ink: #ECEFEA;
    --muted: #A3ADA5;
    --line: #2D3A32;
    --green: #8FD0A8;
    --green-soft: #1A2A21;
    --accent-text: #F0B261;
    --accent-soft: #2C2313;
    --focus: #F0B261;
    --sky: #143D2A;
    --ridge: #26684A;
    --deep: #0B2318;
  }
}

*, *::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);
  font-size: 1.0625rem;
  font-weight: 350;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

a { color: var(--green); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 10px;
}
.skip:focus { top: 12px; }

h2 {
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.intro { max-width: 38em; margin-top: 16px; color: var(--muted); font-size: 1.125rem; }

.block { padding-block: clamp(56px, 9vw, 112px); }
.block-tight { padding-top: 0; }

/* Бөглөх шаардлагатай түр мэдээлэл */
.todo {
  display: inline-block;
  padding: 1px 8px;
  border: 1.5px dashed currentColor;
  border-radius: 6px;
  font-weight: 500;
  white-space: nowrap;
}

/* ---------- Толгой + hero ---------- */

.hero { background: var(--sky); color: var(--on-green); --focus: #FFD08A; overflow: hidden; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1.5px rgb(246 245 240 / 0.4); }

.nav { display: flex; gap: clamp(14px, 2.4vw, 30px); font-size: 0.9375rem; font-weight: 400; }
.nav a { color: inherit; text-decoration: none; padding-block: 6px; }
.nav a:hover { text-decoration: underline; }
.nav a, .brand { white-space: nowrap; }
@media (max-width: 940px) { .nav a:not(.nav-keep) { display: none; } }

.hero-text { padding-top: clamp(32px, 7vw, 88px); }

h1 {
  max-width: 11em;
  font-size: clamp(2.5rem, 8.2vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lead { max-width: 33em; margin-top: clamp(18px, 2.5vw, 28px); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--on-green-muted); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 36px); }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 18px;
  border: 1.5px dashed rgb(246 245 240 / 0.55);
  border-radius: 14px;
  font-weight: 600;
  cursor: default;
}
.soon { padding: 3px 10px; border-radius: 999px; background: var(--sun); color: #17201B; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.stores-note { margin-top: 12px; font-size: 0.9375rem; color: var(--on-green-muted); }

/* Нутгийн зураг: тэмдгийн нар, уул, талыг дэлгэцийн өргөнөөр */
.scene { position: relative; height: clamp(230px, 31vw, 400px); margin-top: clamp(8px, 2vw, 24px); }
.scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene .ridge { fill: var(--ridge); }
.scene .plain { fill: var(--bg); }
.sun {
  position: absolute; left: 66%; top: 6%;
  width: clamp(84px, 13vw, 176px); aspect-ratio: 1;
  border-radius: 50%; background: var(--sun);
}

.pin {
  position: absolute; z-index: 1;
  display: flex; align-items: center; gap: 9px;
  padding: 7px 13px 8px 10px;
  background: #F6F5F0; color: #17201B;
  border-radius: 9px;
  font-size: 0.8125rem; line-height: 1.25;
  box-shadow: 0 6px 0 -3px rgb(11 35 24 / 0.35);
  white-space: nowrap;
}
.pin::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; border: 2px solid #1F5A3D; }
.pin b { display: block; font-weight: 700; font-size: 0.9375rem; }
.pin-1 { left: 5%; top: 40%; rotate: -4deg; }
.pin-2 { left: 27%; top: 22%; rotate: 3deg; }
.pin-3 { left: 47%; top: 56%; rotate: -2deg; }
.pin-4 { left: 79%; top: 50%; rotate: 4deg; }
@media (max-width: 900px) {
  .pin-2 { left: 34%; top: 14%; }
  .pin-3 { left: 40%; top: 58%; }
  .pin-4 { display: none; }
  .sun { left: 70%; }
}
@media (max-width: 560px) {
  .pin-1 { left: 4%; top: 34%; }
  .pin-2 { left: auto; right: 5%; top: 52%; }
  .pin-3 { display: none; }
  .sun { left: 58%; top: 2%; }
}

@media (prefers-reduced-motion: no-preference) {
  .sun { animation: rise 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .pin { animation: settle 0.5s ease-out both; }
  .pin-1 { animation-delay: 0.9s; }
  .pin-2 { animation-delay: 1.05s; }
  .pin-3 { animation-delay: 1.2s; }
  .pin-4 { animation-delay: 1.35s; }
  @keyframes rise { from { translate: 0 120%; } to { translate: 0 0; } }
  @keyframes settle { from { opacity: 0; translate: 0 -10px; } to { opacity: 1; translate: 0 0; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Хэрхэн ажилладаг ---------- */

.steps { display: grid; gap: clamp(28px, 4vw, 56px); margin-top: clamp(32px, 5vw, 56px); counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; padding-top: 18px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step); display: block; font-size: 3.25rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--accent-text); }
.steps h3 { margin-top: 14px; font-size: 1.3125rem; font-weight: 700; line-height: 1.25; }
.steps p { margin-top: 8px; color: var(--muted); }

/* ---------- Нутгаар үзэх ---------- */

.aimags { background: var(--green-soft); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.filters button {
  font: inherit; font-size: 0.9375rem; font-weight: 500;
  padding: 8px 15px; min-height: 40px;
  border: 1.5px solid var(--green); border-radius: 999px;
  background: transparent; color: var(--green);
  cursor: pointer;
}
.filters button:hover { background: var(--surface); }
.filters button[aria-pressed="true"] { background: var(--green); color: var(--bg); }
.filter-status { margin-top: 14px; min-height: 1.6em; font-size: 0.9375rem; color: var(--muted); }

.tags { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; margin-top: 14px; }
.tag {
  position: relative;
  padding: 16px 18px 18px 44px;
  background: var(--surface);
  border-radius: 14px 14px 14px 14px;
}
.tag::before {
  content: ""; position: absolute; left: 16px; top: 22px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--green-soft); box-shadow: inset 0 0 0 2px var(--green);
}
.tag h3 { font-size: 1.25rem; font-weight: 750; line-height: 1.2; letter-spacing: -0.01em; }
.tag .center { margin-top: 2px; font-size: 0.875rem; color: var(--muted); }
.tag .known { margin-top: 10px; font-size: 0.9688rem; line-height: 1.4; }
.tag[hidden] { display: none; }
@media (max-width: 560px) {
  .tags { gap: 8px; }
  .tag { padding: 12px 14px 13px 40px; }
  .tag::before { left: 14px; top: 18px; }
  .tag .known { margin-top: 5px; }
}

/* ---------- Апп дотор ---------- */

.split { display: grid; gap: clamp(28px, 5vw, 72px); }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; align-items: start; } }

.facts > div { padding-block: 22px; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.facts dd { margin-top: 6px; max-width: 36em; color: var(--muted); }

/* ---------- Үйлдвэрлэгчдэд ---------- */

.makers { background: var(--deep); color: var(--on-green); --focus: #FFD08A; }
.makers .intro { color: var(--on-green-muted); }
.makers a { color: #FFD08A; }
.join { counter-reset: join; }
.join li { counter-increment: join; display: grid; grid-template-columns: 2.2em 1fr; padding-block: 20px; border-top: 1px solid rgb(246 245 240 / 0.22); }
.join li:last-child { border-bottom: 1px solid rgb(246 245 240 / 0.22); }
.join li::before { content: counter(join); font-size: 1.5rem; font-weight: 800; line-height: 1.2; color: var(--sun); }
.join h3 { font-size: 1.1875rem; font-weight: 700; line-height: 1.3; }
.join p { margin-top: 4px; color: var(--on-green-muted); }
.makers .todo { color: #FFD08A; }

/* ---------- Хүргэлт, төлбөр ---------- */

.pair { display: grid; gap: clamp(32px, 5vw, 72px); margin-top: clamp(28px, 4vw, 48px); }
@media (min-width: 800px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair h3 { font-size: 1.375rem; font-weight: 700; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.pair li { position: relative; padding: 13px 0 13px 26px; border-bottom: 1px solid var(--line); }
.pair li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 12px; height: 2px; background: var(--accent-text); }

/* ---------- Асуулт, хариулт ---------- */

.faq { max-width: 820px; margin-top: clamp(24px, 4vw, 40px); border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 18px 2px; cursor: pointer; list-style: none;
  font-size: 1.125rem; font-weight: 600; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--accent-text); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 2px 20px; max-width: 40em; color: var(--muted); }

/* ---------- Хөл ---------- */

.foot { background: var(--deep); color: var(--on-green-muted); --focus: #FFD08A; padding-block: 48px 40px; font-size: 0.9375rem; }
.foot a { color: var(--on-green); }
.foot .brand { color: var(--on-green); }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h2 { font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; color: var(--on-green); margin-bottom: 10px; }
.foot li { margin-block: 6px; }
.foot .tagline { margin-top: 12px; max-width: 22em; }
.foot .todo { color: #FFD08A; }
.copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgb(246 245 240 / 0.2); }

/* ---------- Баримт бичгийн хуудас (privacy.html) ---------- */

.doc-top { background: var(--sky); color: var(--on-green); --focus: #FFD08A; }
.doc { max-width: 760px; padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.doc h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -0.025em; line-height: 1.08; }
.doc .updated { margin-top: 10px; color: var(--muted); font-size: 0.9375rem; }
.doc h2 { margin-top: 44px; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.005em; }
.doc p { margin-top: 14px; }
.doc ul { margin-top: 12px; padding-left: 22px; list-style: disc; }
.doc li { margin-block: 7px; }
.doc li::marker { color: var(--accent-text); }
.doc b { font-weight: 650; }
.doc .todo { color: var(--accent-text); }
