/* TugTug — tugtug.mn */
:root {
  --teal: #153F45;
  --teal-2: #1E5560;
  --orange: #FF713F;
  --orange-hover: #FF8A5E;
  --orange-text: #C2491B;   /* orange for text: AA on cream/white */
  --orange-soft: #FFE6DA;
  --cream: #FFF8EF;
  --surface: #F6EEE3;
  --mint: #D8EEE6;
  --ink: #0F2A2E;
  --muted: #5B6E70;
  --line: #EADFD3;
  --white: #FFFFFF;
  --green: #127A3A;
  --radius: 20px;
  --shadow: 0 24px 50px -28px rgba(21, 63, 69, .4);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; color: var(--teal); }
p { margin: 0; }
ul, ol { margin: 0; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--teal); color: var(--white); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 400px) { .wrap { padding: 0 16px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 14px; border: 0;
  font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-dark { background: var(--teal); color: var(--white); }
.btn-dark:hover { background: var(--teal-2); }
.btn-ghost { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 2px rgba(21, 63, 69, .2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--teal); }
.btn-light { background: var(--white); color: var(--teal); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 248, 239, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(21, 63, 69, .08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; color: var(--teal); }
.brand img { border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--teal); }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--white); color: var(--teal); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.menu-btn svg { width: 18px; height: 18px; }

/* Shared section bits */
.section { padding: 88px 0; scroll-margin-top: 60px; }
.section.alt { background: var(--white); }
.section.mint { background: var(--mint); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-text); margin-bottom: 12px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; max-width: 720px; }
.section-lead { font-size: 17px; color: var(--muted); margin-top: 14px; max-width: 620px; }
.lead { font-size: 18px; color: var(--muted); margin-top: 18px; max-width: 560px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.5; background: var(--orange-soft); color: var(--orange-text); }
.badge.live { background: #E2F2E7; color: var(--green); }
.badge.soon { background: var(--surface); color: var(--muted); }

/* Hero */
.hero { padding: 56px 0 80px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
.hero-mark { width: 64px; height: 64px; margin-bottom: 22px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 600; color: var(--teal); }
.live-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #22A35A; box-shadow: 0 0 0 4px rgba(34, 163, 90, .18); }
h1 { font-size: clamp(36px, 5.6vw, 62px); font-weight: 800; margin-top: 18px; }
h1 span { color: var(--orange-text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 18px;
  background: var(--teal); color: var(--white); border-radius: 14px; cursor: default;
}
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; font-weight: 700; font-size: 16px; line-height: 1.15; }
.store small { font-weight: 600; font-size: 11px; color: #FFC2AA; letter-spacing: .02em; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li { position: relative; padding-left: 22px; font-size: 14.5px; font-weight: 600; color: var(--teal); }
.hero-points li::before { content: ''; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); box-shadow: inset 0 0 0 4px #FFD9C9; }

/* Phone mockup (decorative) */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual::before { content: ''; position: absolute; width: 440px; height: 440px; max-width: 120%; border-radius: 50%; background: radial-gradient(circle, #FFD9C9 0%, rgba(255, 217, 201, 0) 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.phone { position: relative; width: 300px; max-width: 100%; padding: 18px; border-radius: 38px; background: var(--white); border: 10px solid var(--teal); box-shadow: 0 30px 60px -20px rgba(21, 63, 69, .45); }
.phone-top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: var(--teal); }
.pill { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--cream); border-radius: 999px; padding: 3px 9px; }
.phone-search { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #F4EEE5; font-size: 12.5px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.tile { position: relative; min-height: 64px; border-radius: 14px; padding: 10px; overflow: hidden; color: var(--white); }
.tile b { position: relative; font-size: 13px; }
.tile i { position: absolute; right: -10px; bottom: -10px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.t1 { background: #D9531F; }
.t2 { background: #2F7D61; }
.t3 { background: #8A5A3B; }
.t4 { background: #7A2E4C; }
.t5 { grid-column: span 2; background: var(--teal); min-height: 52px; }
.order-card { margin-top: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); }
.oc-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; }
.status { font-size: 11px; font-weight: 700; color: var(--orange-text); background: var(--orange-soft); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.progress { height: 6px; border-radius: 999px; background: #F1E8DC; margin: 10px 0 6px; overflow: hidden; }
.progress span { display: block; width: 68%; height: 100%; background: var(--orange); border-radius: inherit; }
.order-card small { font-size: 11.5px; color: var(--muted); }
.float { position: absolute; padding: 10px 14px; border-radius: 14px; background: var(--white); font-weight: 800; font-size: 13.5px; color: var(--teal); box-shadow: 0 12px 30px -12px rgba(21, 63, 69, .35); }
.f1 { top: 40px; left: 0; }
.f2 { bottom: 70px; right: 0; color: var(--green); }

/* Services */
.grid { display: grid; gap: 16px; margin-top: 36px; }
.services { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.section.alt .card { background: var(--cream); }
.section.alt .card.soon { background: var(--white); }
.card h3 { font-size: 19px; margin-top: 16px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.card .badge { position: absolute; top: 20px; right: 20px; }
.card.soon { background: transparent; border-style: dashed; border-color: #D6C8B8; }
.card.soon .ico { background: var(--surface); color: var(--muted); }
.ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--orange-soft); color: var(--orange-text); }
.ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico.teal { background: var(--teal); color: var(--white); }
.ico.mint { background: var(--mint); color: var(--teal); }
.card.feature { grid-column: span 2; }
.card.feature, .section.alt .card.feature { background: var(--teal); border-color: var(--teal); }
.card.feature h3 { color: var(--white); }
.card.feature p { color: rgba(255, 255, 255, .82); }
.card.feature .ico { background: rgba(255, 255, 255, .12); color: #FFB596; }

/* Cities */
.cities { grid-template-columns: repeat(3, 1fr); }
.city { display: flex; flex-direction: column; gap: 6px; }
.city h3 { margin-top: 14px; font-size: 24px; }
.city .region { color: var(--muted); font-size: 15px; }
.city .badge { position: static; align-self: flex-start; margin-top: 12px; }
.city.next { background: var(--teal); border-color: var(--teal); }
.city.next h3 { color: var(--white); }
.city.next p { color: rgba(255, 255, 255, .82); }
.city.next .ico { background: rgba(255, 255, 255, .12); color: #FFB596; }
.city.next .btn { margin-top: 16px; align-self: flex-start; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: var(--cream); border-radius: var(--radius); padding: 26px; }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--teal); color: var(--white); font-weight: 800; }
.steps h3 { font-size: 19px; margin-top: 16px; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Apps strip */
.apps { grid-template-columns: repeat(3, 1fr); }
.app { display: flex; gap: 16px; align-items: flex-start; }
.app img { width: 56px; height: 56px; border-radius: 14px; flex: none; box-shadow: 0 0 0 1px var(--line); }
.app h3 { font-size: 17px; margin: 2px 0 0; }
.app p { margin-top: 4px; font-size: 14.5px; }

/* Split (merchant / courier) */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split.reverse { grid-template-columns: .85fr 1.15fr; }
.checks { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-size: 16px; }
.checks li strong { color: var(--teal); }
.checks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px; background: var(--orange-soft); }
.checks li::after { content: ''; position: absolute; left: 8px; top: 6px; width: 6px; height: 11px; border: solid var(--orange-text); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.contact-line { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.contact-line a { font-weight: 700; }

.role-card { background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 28px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.role-card img { border-radius: 18px; }
.role-card b { font-size: 18px; color: var(--teal); }
.role-card.courier { background: var(--teal); border-color: var(--teal); }
.role-card.courier b { color: var(--white); }
.mini { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--cream); font-size: 14px; color: var(--muted); }
.mini strong { color: var(--teal); font-size: 14.5px; text-align: right; }
.role-card.courier .mini { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .78); }
.role-card.courier .mini strong { color: var(--white); }
.online { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 12px; border-radius: 999px; background: rgba(47, 143, 107, .22); color: #8FE6C1; font-weight: 700; font-size: 13px; }
.online .dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; }

/* FAQ */
.faq { margin-top: 32px; display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; font-weight: 700; font-size: 16.5px; color: var(--teal); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 10px; height: 10px; border: solid var(--orange-text); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); margin-top: -4px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }
.faq details > div p + p { margin-top: 8px; }

/* CTA band */
.cta { padding: 80px 0; background: var(--teal); color: var(--white); }
.cta-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.cta-inner img { background: var(--white); border-radius: 24px; padding: 6px; }
.cta h2 { color: var(--white); margin-top: 8px; }
.cta p { color: rgba(255, 255, 255, .82); font-size: 17px; margin-bottom: 10px; max-width: 560px; }
.cta a:not(.btn) { color: var(--white); }

/* Footer */
.footer { padding: 48px 0 32px; background: var(--white); border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer .brand { font-size: 18px; }
.footer .tag { margin-top: 10px; max-width: 300px; }
.footer h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--teal); font-weight: 600; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; }

/* Legal / document pages */
.doc-hero { padding: 56px 0 24px; }
.doc-hero h1 { font-size: clamp(32px, 4.6vw, 48px); margin-top: 0; }
.doc-hero .meta { margin-top: 12px; color: var(--muted); font-size: 15px; }
.doc { padding: 16px 0 88px; }
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: 92px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px; font-size: 14px; }
.toc h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.toc ol { padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--teal); text-decoration: underline; }
.prose { max-width: 720px; font-size: 16.5px; }
.prose section { scroll-margin-top: 88px; }
.prose section + section { margin-top: 40px; }
.prose h2 { font-size: 24px; margin-bottom: 12px; }
.prose h3 { font-size: 18px; margin: 22px 0 8px; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 12px; }
.prose ul { padding-left: 22px; display: grid; gap: 8px; }
.prose li::marker { color: var(--orange-text); }
.prose .note { margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: var(--mint); color: var(--teal); font-size: 15.5px; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--teal); background: var(--surface); }
.table-scroll { overflow-x: auto; }

/* Support */
.contact-cards { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.contact-cards .card h2 { font-size: 19px; margin-top: 16px; }
.contact-cards .card a { font-weight: 700; font-size: 17px; display: inline-block; margin-top: 8px; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound .code { font-size: clamp(72px, 16vw, 140px); font-weight: 800; line-height: 1; color: var(--orange-text); letter-spacing: -0.04em; }
.notfound h1 { font-size: clamp(26px, 4vw, 36px); margin-top: 12px; }
.notfound p { margin: 12px auto 28px; color: var(--muted); max-width: 440px; }
.notfound .actions { justify-content: center; }

/* Responsive */
@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 18px; }
}
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(21, 63, 69, .3); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .no-js .nav-links { display: flex; position: static; flex-direction: row; flex-wrap: wrap; box-shadow: none; border: 0; padding: 0; }
  .hero { padding: 32px 0 64px; }
  .hero-inner, .split, .split.reverse { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split.reverse > :first-child { order: 0; }
  .steps, .apps, .cities, .contact-cards { grid-template-columns: 1fr; }
  .cities { grid-template-columns: repeat(2, 1fr); }
  .city.next { grid-column: span 2; }
  .section { padding: 68px 0; }
  .doc-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: span 2; }
}
@media (max-width: 560px) {
  .services, .cities { grid-template-columns: 1fr; }
  .card.feature, .city.next { grid-column: span 1; }
  .phone { width: 270px; }
  .f1 { top: -18px; left: 0; }
  .f2 { right: -4px; }
  .lead { font-size: 16.5px; }
  .store { flex: 1 1 150px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .prose { font-size: 16px; }
}

/* Prevent grid children from forcing horizontal overflow on narrow screens */
.grid > *, .steps > *, .split > *, .doc-layout > *, .hero-inner > *, .footer-grid > * { min-width: 0; }
.doc-layout { grid-template-columns: 240px minmax(0, 1fr); }
@media (max-width: 900px) { .doc-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .prose table { font-size: 14px; } .prose th, .prose td { padding: 8px 6px; } }
