/* ReelsBozor site. Colours and font follow docs/BRAND.md. */

@font-face {
  font-family: "Montserrat";
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/montserrat-medium.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/montserrat-bold.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-black.woff2") format("woff2");
}

:root {
  --navy: #12203c;
  --navy-2: #1b2d52;
  --yellow: #ffc83d;
  --white: #ffffff;
  --paper: #f6f4ef;
  --ink: #12203c;
  --muted: #5a6478;
  --line: #e2ded4;
  --radius: 18px;
  --wrap: 1080px;
  --gutter: 20px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 17px/1.6 "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Three languages live on every page; only the active one is shown. Uzbek without JavaScript. */
html[data-lang="uz"] [data-l]:not([data-l="uz"]),
html[data-lang="ru"] [data-l]:not([data-l="ru"]),
html[data-lang="en"] [data-l]:not([data-l="en"]) { display: none !important; }

a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.top { background: var(--navy); color: var(--white); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: auto; }
.wordmark { font-weight: 900; font-size: 22px; letter-spacing: -0.01em; }
.wordmark b { color: var(--yellow); font-weight: 900; }

.langs { display: flex; gap: 4px; }
.langs a {
  padding: 6px 10px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 14px; color: rgba(255, 255, 255, 0.72);
}
.langs a:hover { color: var(--white); }
.langs a[aria-current="true"] { background: var(--yellow); color: var(--navy); }

/* Hero */
.hero { background: var(--navy); color: var(--white); padding: 40px 0 72px; }
.hero h1 {
  margin: 0 0 18px; font-weight: 900; line-height: 1.08; letter-spacing: -0.02em;
  font-size: clamp(36px, 7vw, 64px); max-width: 15ch;
}
.hero h1 b { color: var(--yellow); font-weight: 900; }
.hero p { margin: 0 0 32px; max-width: 46ch; font-size: 19px; color: rgba(255, 255, 255, 0.82); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 17px; text-decoration: none;
}
.btn-main { background: var(--yellow); color: var(--navy); }
.btn-main:hover { filter: brightness(1.05); }
.btn-ghost { color: var(--white); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--white); }

/* Sections */
.section { padding: 64px 0; }
.section.section-tight { padding-top: 0; }
.section h2 {
  margin: 0 0 28px; font-weight: 900; font-size: clamp(26px, 4.4vw, 38px);
  line-height: 1.15; letter-spacing: -0.01em;
}

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px;
  margin-bottom: 14px; border-radius: 12px; background: var(--navy); color: var(--yellow);
  font-weight: 900; font-size: 20px;
}
.steps h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.steps p { margin: 0; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 10px 16px; border-radius: 999px; background: var(--white);
  border: 1px solid var(--line); font-weight: 700;
}
.note { margin: 20px 0 0; color: var(--muted); max-width: 60ch; }

.safety { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.safety ul { margin: 0; padding-left: 1.2em; max-width: 64ch; }
.safety li { margin: 0 0 10px; }

.cta { text-align: center; }
.cta p { margin: 0 auto 24px; max-width: 46ch; color: var(--muted); }

/* Footer */
.foot { background: var(--navy); color: rgba(255, 255, 255, 0.75); padding: 36px 0; font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--white); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* Legal documents */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 780px; }
.doc h1 { margin: 0 0 8px; font-weight: 900; font-size: clamp(28px, 5vw, 40px); line-height: 1.15; }
.doc .meta { margin: 0 0 32px; color: var(--muted); font-size: 15px; }
.doc h2 { margin: 36px 0 10px; font-size: 21px; font-weight: 700; }
.doc p, .doc li { max-width: 70ch; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 0 0 8px; }
.doc code {
  padding: 2px 6px; border-radius: 6px; background: var(--white);
  border: 1px solid var(--line); font-size: 0.92em;
}
.box {
  margin: 24px 0; padding: 20px 22px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
}
.box > :first-child { margin-top: 0; }
.box > :last-child { margin-bottom: 0; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.page-title { margin: 0 0 10px; font-weight: 900; font-size: clamp(28px, 5vw, 40px); line-height: 1.15; }
.lead { margin: 0 0 32px; max-width: 60ch; color: var(--muted); }
.actions-center { justify-content: center; margin: 40px 0 0; }
.link-more { display: inline-block; margin-top: 20px; font-weight: 700; }

/* /guides/ */
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.guide {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.guide-frame { background: var(--navy); }
.guide video { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 70vh; object-fit: contain; background: var(--navy); }
.guide-body { padding: 18px 20px 20px; }
.guide-body h2 { margin: 0 0 6px; font-size: 19px; font-weight: 700; line-height: 1.3; }
.guide-body p { margin: 0 0 10px; color: var(--muted); }
.guide-time { font-size: 14px; font-weight: 700; color: var(--muted); }

/* /examples/: one video per screen, snapping like Reels */
.feed-page { background: var(--navy); }
.feed-wrap { position: relative; }
.feed {
  height: calc(100svh - 68px); overflow-y: auto; scroll-snap-type: y mandatory;
  overscroll-behavior: contain; scrollbar-width: none; outline: none;
}
.feed::-webkit-scrollbar { display: none; }
.reel {
  position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; padding: 12px 0;
}
.reel video {
  height: 100%; max-width: 100%; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: var(--radius); background: #000; cursor: pointer;
}
.reel-info {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  width: min(calc((100svh - 92px) * 9 / 16), 100%); padding: 48px 18px 18px;
  border-radius: 0 0 var(--radius) var(--radius); pointer-events: none;
  background: linear-gradient(to top, rgba(18, 32, 60, 0.92), rgba(18, 32, 60, 0));
  color: var(--white);
}
.reel-info h2 { margin: 0 0 4px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.reel-place { margin: 0 0 10px; font-size: 15px; color: rgba(255, 255, 255, 0.82); }
.reel-link {
  pointer-events: auto; display: inline-flex; padding: 8px 14px; border-radius: 999px;
  background: var(--yellow); color: var(--navy); font-weight: 700; font-size: 14px; text-decoration: none;
}
.reel-end { color: var(--white); text-align: center; padding: 0 var(--gutter); }
.reel-end h2 { margin: 0 0 24px; font-weight: 900; font-size: clamp(24px, 4vw, 34px); line-height: 1.2; }
.feed-more { display: inline-block; margin-top: 18px; color: rgba(255, 255, 255, 0.82); }
.sound {
  /* the top right corner of the centred video, whose width is (feed height - padding) * 9/16 */
  position: absolute; z-index: 2; top: 24px; right: max(12px, calc(50% - (100svh - 92px) * 9 / 32 + 12px));
  width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(18, 32, 60, 0.7); color: var(--white); font-size: 20px;
}
.sound .sound-on, .sound[aria-pressed="true"] .sound-off { display: none; }
.sound[aria-pressed="true"] .sound-on { display: inline; }
.feed-note { margin: 40px auto; max-width: 640px; }

@media (max-width: 560px) {
  .reel { padding: 0; }
  .reel video, .reel-info { border-radius: 0; }
  .reel-info { bottom: 0; width: 100%; }
  .sound { top: 12px; right: 12px; }
  body { font-size: 16px; }
  .wordmark { font-size: 19px; }
  .brand img { width: 34px; }
  .langs a { padding: 6px 8px; }
  .hero { padding: 28px 0 56px; }
  .hero p { font-size: 17px; }
  .actions .btn { width: 100%; }
  .section { padding: 48px 0; }
}
