/* tamirchin.com: the app's own palette (cream, charcoal, the icon's gold),
   Unbounded for headings and Onest for text. The @font-face rules are in
   /fonts.css, generated by the build from Fontsource. */

:root {
  --paper: #faf9f5;
  --paper-2: #f1f0ea;
  --ink: #1d1d1b;
  --muted: #5c5b56;
  --line: #e1e0d9;
  --charcoal: #2a2a28;
  --charcoal-2: #353532;
  --gold: #e9b949;
  --gold-soft: #f6e7bd;
  --display: Unbounded, "Segoe UI", sans-serif;
  --text: Onest, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--text); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
p { margin: 0; }
/* Bold text uses the preloaded 600 weight, so it does not reflow when fonts arrive. */
strong, b { font-weight: 600; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(250, 249, 245, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; text-decoration: none; }
.brand .mark { flex: none; }
.top-nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 500; }
.top-nav a { text-decoration: none; color: var(--muted); }
.top-nav a:hover, .top-nav a[aria-current="page"] { color: var(--ink); }
.lang { font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: #fff; }
.lang:hover { border-color: var(--ink); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }
.button { display: inline-block; background: var(--charcoal); color: var(--paper); text-decoration: none; font-weight: 600; padding: 14px 24px; border-radius: 14px; }
.button:hover { background: #000; }
.button.light { background: var(--paper); color: var(--ink); }
.button.light:hover { background: #fff; }
.soon { font-size: 15px; color: var(--muted); padding-left: 22px; background: radial-gradient(circle at 6px 50%, var(--gold) 5px, transparent 6px) no-repeat; }

/* Hero */
.hero { padding: 72px 0 40px; overflow: hidden; }
/* Top-aligned, so the phones do not move when the fonts change the text's height. */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.hero-copy { padding-top: 48px; container-type: inline-size; }
.eyebrow { font-weight: 600; font-size: 15px; color: var(--muted); margin-bottom: 18px; }
/* The same size as the section headings, but never wider than its column:
   the longest Mongolian word ("дасгалжуулагчийг", about 12.5em in Unbounded)
   cannot wrap, so at 7.6% of the column's width it still fits and does not run
   under the phones. */
.hero h1 { font-size: clamp(28px, 3.4vw, 42px); font-size: min(clamp(28px, 3.4vw, 42px), 7.6cqi); }
.lead { font-size: 20px; color: var(--muted); max-width: 36em; margin-top: 22px; }
.note { margin-top: 18px; font-size: 15px; color: var(--muted); }
.hero-art { position: relative; height: 600px; }
.phone { margin: 0; width: 280px; border: 9px solid var(--ink); border-radius: 38px; overflow: hidden; background: var(--ink); box-shadow: 0 30px 60px -28px rgba(29, 29, 27, 0.55); }
.phone img { display: block; border-radius: 29px; }
.hero-art .back { position: absolute; right: 0; top: 0; width: 270px; }
.hero-art .front { position: absolute; left: 4%; top: 90px; width: 270px; }

/* The daily questions */
.questions { padding: 56px 0 72px; }
.questions h2 { font-size: 22px; font-family: var(--text); font-weight: 600; letter-spacing: 0; color: var(--muted); }
.qa { list-style: none; counter-reset: q; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding: 0; margin: 28px 0 0; }
.qa li { counter-increment: q; border-top: 2px solid var(--ink); padding-top: 18px; }
.qa li::before { content: "0" counter(q); display: block; font-family: var(--display); font-weight: 700; font-size: 15px; color: #8a6a12; margin-bottom: 10px; }
.q { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.a { color: var(--muted); margin-top: 10px; }

/* Feature sections */
.feature { padding: 80px 0; border-top: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.feature.flip .feature-copy { order: 2; }
.feature .phone { justify-self: center; }
.kicker { font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: #6f540b; margin-bottom: 14px; }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
.body { font-size: 19px; color: var(--muted); margin-top: 18px; max-width: 34em; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px; background: var(--gold-soft); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 6px; height: 10px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* The app's five tabs, beside the exercise log */
.tabs-card { background: #fff; border-radius: 18px; padding: 26px 28px; box-shadow: 0 24px 48px -30px rgba(29, 29, 27, 0.45); max-width: 420px; width: 100%; justify-self: center; }
.tabs-label { font-weight: 600; color: var(--muted); font-size: 15px; }
.tabs-list { list-style: none; padding: 0; margin: 14px 0 0; }
.tabs-list li { display: grid; gap: 2px; padding: 12px 0 12px 16px; border-bottom: 1px solid var(--line); position: relative; }
.tabs-list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.tabs-list strong { font-family: var(--display); font-size: 17px; }
.tabs-list span { color: var(--muted); font-size: 15px; }
.tabs-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Payments */
.payments { padding: 88px 0; background: var(--paper-2); }
.pay-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--charcoal); color: var(--paper); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.steps strong { font-weight: 600; }
.steps span { color: var(--muted); }
.ticket { position: relative; background: #fff; border-radius: 18px; padding: 28px 28px 24px; box-shadow: 0 24px 48px -30px rgba(29, 29, 27, 0.45); max-width: 420px; justify-self: center; width: 100%; }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 108px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper-2); }
.ticket::before { left: -11px; }
.ticket::after { right: -11px; }
.ticket-label { font-weight: 600; color: var(--muted); font-size: 15px; padding-bottom: 46px; border-bottom: 2px dashed var(--line); }
.ticket dl { margin: 18px 0 0; }
.ticket dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ticket dt { color: var(--muted); }
.ticket dd { margin: 0; font-weight: 600; text-align: right; }
.ticket .amount { font-family: var(--display); font-size: 20px; }
.ticket .code-row { border-bottom: 0; }
.ticket .code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 20px; letter-spacing: 0.06em; background: var(--gold-soft); padding: 2px 10px; border-radius: 8px; }
.ticket-status { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Clubs */
.clubs { padding: 88px 0; background: var(--charcoal); color: var(--paper); }
.clubs-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.clubs .kicker { color: var(--gold); }
.clubs .body { color: #c9c7bf; }
.onboard { list-style: none; counter-reset: o; padding: 0; margin: 8px 0 0; }
.onboard li { counter-increment: o; display: flex; gap: 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--charcoal-2); font-size: 18px; font-weight: 500; }
.onboard li::before { content: counter(o); font-family: var(--display); font-weight: 700; color: var(--gold); font-size: 22px; min-width: 24px; }

/* FAQ */
.faq { padding: 88px 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 64px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-child { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--display); color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin-top: 10px; max-width: 40em; }

/* Documents: privacy policy and account deletion */
.doc { max-width: 760px; padding-top: 40px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); margin: 16px 0 8px; }
.doc h1 + p { color: var(--muted); }
.doc h2 { font-family: var(--text); font-weight: 600; letter-spacing: 0; font-size: 22px; margin: 40px 0 10px; }
.doc p { margin: 12px 0; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a { text-underline-offset: 3px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 15px; }
.foot-row { display: grid; grid-template-columns: auto 1fr; gap: 14px 36px; align-items: center; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: flex-end; }
.foot-nav a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.foot-nav a:hover { color: var(--ink); }
.foot-note { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }

/* Narrow screens */
@media (max-width: 900px) {
  .top-nav { display: none; }
  .lang { margin-left: auto; }
  .hero { padding-top: 40px; }
  .hero-copy { padding-top: 0; }
  .hero-grid, .feature-grid, .pay-grid, .clubs-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature.flip .feature-copy { order: 0; }
  .hero-art { height: 470px; max-width: 420px; width: 100%; justify-self: center; }
  .hero-art .back, .hero-art .front { width: 210px; border-width: 7px; border-radius: 30px; }
  .hero-art .back img, .hero-art .front img { border-radius: 23px; }
  .hero-art .front { top: 70px; left: 0; }
  .qa { grid-template-columns: 1fr; gap: 28px; }
  .feature, .payments, .clubs, .faq { padding: 64px 0; }
  .feature .phone { width: 240px; }
  .foot-row { grid-template-columns: 1fr; }
  .foot-nav { justify-content: flex-start; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .hero-art .back, .hero-art .front { width: 180px; }
  .hero-art { height: 410px; }
}
