/* Shared styles for the static marketing pages (site/). Matches the Flutter
   app's look: near-black ground, antique gold, serif display type. */
:root {
  --bg: #0B0F1A;
  --bg2: #12161F;
  --line: rgba(185, 148, 74, .32);
  --rule: rgba(255, 255, 255, .07);
  --gold: #D4AF56;
  --gold2: #B9944A;
  --ink: #EDE8DC;
  --body: #C9C4B8;
  --muted: #9A968E;
  --serif: Georgia, "PT Serif", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 20px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold); text-decoration: none; font: 700 14px/1 var(--sans); letter-spacing: .14em; white-space: nowrap; }
.brand .mark { width: 38px; height: 38px; flex: none; border: 1.5px solid var(--gold); border-radius: 50%; display: grid; place-items: center; font: 700 15px/1 var(--serif); letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav a.btn { color: #0B0F1A; }

/* Language switcher: always visible in the header; the current language is
   filled gold. Full names on wide screens, EN / МН on phones. */
.lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; flex: none; }
.lang a { padding: 7px 11px; border-radius: 999px; color: var(--body); text-decoration: none; font: 600 13px/1 var(--sans); }
.lang a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.lang a[aria-current] { background: var(--gold2); color: #0B0F1A; }
.lang .short { display: none; }
@media (max-width: 560px) {
  .lang .full { display: none; }
  .lang .short { display: inline; }
  .nav { gap: 12px; }
}
@media (max-width: 380px) {
  .nav a[href="/pricing"] { display: none; }
}

/* Buttons */
.btn { display: inline-block; background: var(--gold2); color: #0B0F1A; font: 700 15px/1 var(--sans); letter-spacing: .03em; padding: 15px 24px; border-radius: 10px; text-decoration: none; }
.btn:hover { background: var(--gold); }
.btn.small { padding: 10px 14px; font-size: 13.5px; }
button.btn { cursor: pointer; border: 0; }
button.btn.ghost { border: 1px solid var(--line); }
.btn.ghost { background: transparent; color: var(--gold); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--gold); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.18rem; }
h1 em, h2 em { color: var(--gold); }
p { margin: 0 0 1em; }
.eyebrow { color: var(--gold); font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; }
.lede { font-size: 1.14rem; color: var(--body); max-width: 34em; }
.fine { color: var(--muted); font-size: 13.5px; margin: 14px 0 0; }
.muted { color: var(--muted); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-block: 36px 64px; }
.hero .compare { max-width: 400px; width: 100%; margin-inline: auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }

/* Before/after slider */
.compare { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: #000; aspect-ratio: var(--ar, 4 / 5); max-width: 100%; user-select: none; -webkit-user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.compare .divider { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: var(--gold); pointer-events: none; }
.compare .divider::after { content: ""; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--gold2); box-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare input:focus-visible + .divider { outline: 2px solid var(--ink); outline-offset: 2px; }
.compare .tag { position: absolute; top: 12px; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; background: rgba(0, 0, 0, .62); color: var(--ink); padding: 7px 9px; border-radius: 6px; pointer-events: none; }
.compare .tag.l { left: 12px; }
.compare .tag.r { right: 12px; }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: 13.5px; margin-top: 10px; }

/* Sections */
section { padding-block: 56px; border-top: 1px solid var(--rule); }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head p { color: var(--body); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; align-items: center; }
.card { background: var(--bg2); border: 1px solid var(--rule); border-radius: 14px; padding: 22px; }
.card p { margin: 0; color: var(--body); }
.card a.more { display: inline-block; margin-top: 12px; font-size: 14px; text-decoration: none; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); color: var(--gold); display: grid; place-items: center; font: 700 15px/1 var(--serif); }
.steps p { color: var(--body); margin: 0; }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { padding-left: 26px; position: relative; color: var(--body); margin-bottom: .45em; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { background: var(--bg2); border: 1px solid var(--rule); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; }
.plan.best { border-color: var(--gold2); }
.plan .badge { align-self: flex-start; font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #0B0F1A; background: var(--gold2); padding: 6px 8px; border-radius: 6px; margin-bottom: 12px; }
.plan .price { font: 700 2.3rem/1 var(--serif); color: var(--ink); margin: 6px 0 4px; }
.plan .per { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.plan .checks { flex: 1; }

/* FAQ */
.faq { max-width: 760px; }
details { border-bottom: 1px solid var(--rule); padding-block: 16px; }
summary { cursor: pointer; font-weight: 600; list-style: none; padding-right: 28px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: -2px; color: var(--gold); font-size: 20px; }
details[open] summary::after { content: "–"; }
details p { color: var(--body); margin: .7em 0 0; }

/* Closing call to action */
.final { text-align: center; }
.final .lede { margin-inline: auto; }
.final .cta-row { justify-content: center; }

/* Legal pages */
.prose { max-width: 720px; padding-block: 24px 56px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.9em; }
.prose p, .prose li { color: var(--body); }
.prose ul { padding-left: 1.2em; }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding-block: 32px 48px; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 16px 48px; }
  .grid3, .grid2, .plans { grid-template-columns: 1fr; }
  .nav .opt { display: none; }
  section { padding-block: 44px; }
}

@media (max-width: 440px) {
  .brand .name { display: none; }
}

/* "View in Mongolian?" suggestion (English home page only, see site.js).
   Fixed to the bottom so it never shifts the page layout. */
.mn-suggest { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 16px; background: var(--bg2); border: 1px solid var(--gold2); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .55); transform: translateY(calc(100% + 24px)); transition: transform .35s ease; }
.mn-suggest.show { transform: none; }
.mn-suggest p { margin: 0; flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.4; color: var(--body); }
.mn-suggest b { display: block; color: var(--ink); font-size: 15px; }
.mn-suggest .btn { white-space: nowrap; }
.mn-suggest .x { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.mn-suggest .x:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
@media (max-width: 420px) {
  .mn-suggest span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mn-suggest { transition: none; }
}
