/* oribravo.com — Video Downloader Ori */
:root {
  --ori: #ffc935;        /* brand yellow, same as the extension */
  --ori-deep: #f2b600;   /* pressed / hover */
  --ori-soft: #fff4d4;   /* icon tiles */
  --ink: #1b1b1f;        /* text, same as the extension badge text */
  --muted: #5d5a52;
  --line: #ece6d6;
  --paper: #ffffff;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", "Noto Sans", "Hiragino Sans", "Apple SD Gothic Neo", "Malgun Gothic", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  font-optical-sizing: auto;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--ori);
  font: 600 16px/1 var(--font);
  padding: 15px 22px; border-radius: 999px; text-decoration: none;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; }
.btn.small { padding: 10px 16px; font-size: 14px; white-space: nowrap; }

/* ---------- hero ---------- */
.hero { background: var(--ori); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: end;
  padding-top: 40px;
}
.hero-copy { padding-bottom: 88px; }
.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(46px, 7.4vw, 96px);
  line-height: 0.95; font-weight: 800; letter-spacing: -0.035em;
  font-stretch: 85%;
}
.hero .lede { margin: 0 0 32px; max-width: 30em; font-size: 20px; line-height: 1.5; }
.hero .soon { margin: 14px 0 0; font-size: 14px; color: #4a3b00; }

/* the product itself: a static copy of the popup */
.popup {
  justify-self: end; width: min(440px, 100%);
  background: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -2px 0 rgba(27, 27, 31, .08), 0 30px 60px -20px rgba(80, 55, 0, .45);
  padding: 16px 16px 0; font-size: 14px; line-height: 1.35;
  transform: translateY(1px);
}
.popup-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 2px 4px 14px; border-bottom: 1px solid var(--line); }
.popup-head img { width: 22px; height: 22px; }
.popup-head .count { margin-left: auto; background: var(--ori); border-radius: 999px; padding: 2px 9px; font-size: 12px; }
.item { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; }
.thumb .kind, .thumb .len { position: absolute; z-index: 1; bottom: 5px; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.thumb .kind { left: 5px; background: var(--ori); }
.thumb .len { right: 5px; background: rgba(0,0,0,.72); color: #fff; }
.t-surf { background: linear-gradient(180deg, #7fd3e8 0 38%, #1f7fa6 38% 55%, #0f5b7a 55% 70%, #f4e1b5 70%); }
.t-studio { background: radial-gradient(circle at 70% 40%, #ff8a3d 0 14%, transparent 15%), linear-gradient(135deg, #2c2346, #6b3a7a 60%, #c2527a); }
.t-city { background: linear-gradient(180deg, #ffb36b, #e7657d 55%, #3d2a5c 56%), #333; }
.t-city::after { content: ""; position: absolute; inset: 52% 0 0; background: repeating-linear-gradient(90deg, #241b36 0 14px, #2f2446 14px 22px, #1c1529 22px 30px); clip-path: polygon(0 40%, 12% 40%, 12% 10%, 22% 10%, 22% 30%, 36% 30%, 36% 0, 48% 0, 48% 35%, 62% 35%, 62% 15%, 74% 15%, 74% 45%, 88% 45%, 88% 20%, 100% 20%, 100% 100%, 0 100%); }
.meta b { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; gap: 6px; align-items: center; }
.ibtn { width: 30px; height: 30px; border-radius: 7px; background: var(--ori); display: grid; place-items: center; flex: none; }
.ibtn svg { width: 16px; height: 16px; }
.select { flex: 1; min-width: 0; border: 1px solid #ddd8ca; border-radius: 7px; padding: 6px 9px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.go { width: 30px; height: 30px; border-radius: 7px; background: var(--ink); color: var(--ori); display: grid; place-items: center; flex: none; }
.go svg { width: 16px; height: 16px; }

/* ---------- sections ---------- */
section.block { padding-block: 96px; }
section.block + section.block { border-top: 1px solid var(--line); }
h2 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; font-weight: 750; letter-spacing: -0.025em; }
.intro { margin: 0 0 48px; max-width: 34em; color: var(--muted); font-size: 18px; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 56px; margin: 0; padding: 0; list-style: none; }
.features li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.tile { width: 44px; height: 44px; border-radius: 12px; background: var(--ori-soft); display: grid; place-items: center; }
.tile svg { width: 22px; height: 22px; }
.features h3 { margin: 2px 0 4px; font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
.features p { margin: 0; color: var(--muted); max-width: 30em; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block; font-size: 72px; line-height: 1; font-weight: 800; letter-spacing: -0.04em;
  color: var(--ori); -webkit-text-stroke: 2px var(--ink); margin-bottom: 14px;
}
.steps h3 { margin: 0 0 6px; font-size: 20px; font-weight: 650; }
.steps p { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.split p { margin: 0 0 12px; color: var(--muted); }
.split ul { margin: 0; padding-left: 20px; color: var(--muted); }
.split li { margin-bottom: 8px; }
.textlink { font-weight: 600; text-underline-offset: 4px; }

/* ---------- footer ---------- */
footer { background: var(--ink); color: #d9d6cc; padding-block: 44px; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
footer a { color: var(--ori); text-underline-offset: 4px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- legal page ---------- */
.legal-hero { background: var(--ori); padding-block: 56px 48px; }
.legal-hero h1 { margin: 0 0 8px; font-size: clamp(38px, 6vw, 64px); line-height: 1; font-weight: 800; letter-spacing: -0.03em; font-stretch: 85%; }
.legal-hero p { margin: 0; }
.legal { max-width: 720px; padding-block: 56px 96px; }
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1; }
.legal h2 { font-size: 26px; margin: 44px 0 10px; }
.legal p, .legal li { color: #34322c; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 10px; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { padding-bottom: 32px; }
  .popup { justify-self: stretch; width: 100%; }
  .features, .steps, .split { grid-template-columns: 1fr; }
  section.block { padding-block: 72px; }
}
@media (max-width: 520px) {
  .top nav a.hide-sm { display: none; }
  .brand .long { display: none; }
  .item { grid-template-columns: 92px 1fr; }
  .hero .lede { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- brand home: product list ---------- */
.products { list-style: none; margin: 0; padding: 0; }
.products li + li { border-top: 1px solid var(--line); }
.products a { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: center; padding: 18px 0; text-decoration: none; }
.products img { width: 56px; height: 56px; }
.products b { display: block; font-size: 20px; font-weight: 650; color: var(--ink); }
.products span { color: var(--muted); }
.products a:hover b { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- languages ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.langsel {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  font: 500 14px/1 var(--font); padding: 8px 10px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(27, 27, 31, .25);
}
.langsel:hover { border-color: var(--ink); }
.langsel svg { width: 16px; height: 16px; flex: none; }
.langsel .chev { width: 12px; height: 12px; opacity: .7; }
.langsel .cur { white-space: nowrap; }
.langsel select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.langsel:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.langbar { background: var(--ink); color: #fff; font-size: 15px; }
.langbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.langbar a { color: var(--ori); font-weight: 600; text-underline-offset: 4px; }
.langbar button { background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.legal .note { background: var(--ori-soft); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px; }

/* scripts without Latin letters: no tight tracking, room for tall glyphs */
html.nonlatin h1, html.nonlatin h2, html.nonlatin h3, html.nonlatin .brand { letter-spacing: 0; font-stretch: 100%; }
html.nonlatin .hero h1 { line-height: 1.15; font-size: clamp(38px, 6vw, 76px); }
html.nonlatin .legal-hero h1 { line-height: 1.2; }
html:lang(th) body, html:lang(hi) body, html:lang(bn) body { line-height: 1.75; }

/* right-to-left */
[dir="rtl"] .features li { grid-template-columns: 44px 1fr; }
[dir="rtl"] .split ul, [dir="rtl"] .legal ul { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .popup { justify-self: start; }

/* long translations must never widen the page */
.hero-grid > *, .meta, .top nav { min-width: 0; }
.brand { flex: none; }
@media (max-width: 520px) {
  .top { gap: 10px; }
  .top nav { gap: 10px; }
  .langsel { padding: 7px 9px; font-size: 13px; }
  .langsel .cur { max-width: 7em; overflow: hidden; text-overflow: ellipsis; }
  .top .btn.small { display: none; } /* the hero has its own big button */
}

.popup-head .count { white-space: nowrap; }
.btn { max-width: 100%; overflow-wrap: anywhere; }

/* very long words (e.g. Russian "конфиденциальности") hyphenate instead of widening the page */
h1, h2 { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 520px) { .legal-hero h1 { font-size: 34px; } }

/* Korean breaks between words, not inside them */
html:lang(ko) body { word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- brand home: wordmark + editing timeline ---------- */
.bh-hero { background: var(--ori); overflow: hidden; }
.bh-top { display: flex; justify-content: space-between; align-items: center; padding-block: 22px; }
/* the wordmark fills the content width exactly (container query units) */
.bh-hero .wrap { container-type: inline-size; }
.bh-top { container-type: normal; }
html .bh-word, html.nonlatin .bh-word {
  margin: 28px 0 26px; font-size: var(--wm, 32.4cqw); line-height: .8;
  font-weight: 800; font-stretch: 75%; letter-spacing: -0.012em; white-space: nowrap;
}
.bh-tag { margin: 0; padding-bottom: 64px; max-width: 26em; font-size: clamp(18px, 2vw, 22px); line-height: 1.45; }


/* ---------- brand home: featured product card ---------- */
.feat { background: var(--ink); padding-block: 72px 100px; }
.feat-label { margin: 0 0 20px; color: #fff; font-size: clamp(24px, 3vw, 32px); }
.feat-card { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; text-decoration: none; color: var(--ink);
  background: var(--ori); border-radius: 22px; padding: 40px 40px 0; overflow: hidden; transition: transform .2s ease; }
.feat-card:hover { transform: translateY(-3px); }
.feat-card:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.feat-copy { align-self: center; padding-bottom: 40px; }
.feat-copy img { width: 56px; height: 56px; margin-bottom: 18px; }
.feat-copy b { display: block; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 12px; }
.feat-copy span { display: block; font-size: 18px; max-width: 24em; }
.feat-shot { display: block; }
.feat-shot .popup { display: block; justify-self: end; margin-left: auto; width: min(420px, 100%); }
.feat-shot .popup-head, .feat-shot .item, .feat-shot .row { display: flex; }
.feat-shot .item { display: grid; }
.feat-shot .meta b { display: block; }
@media (max-width: 800px) { .feat-card { grid-template-columns: 1fr; padding: 28px 22px 0; gap: 10px; } .feat-copy { padding-bottom: 8px; } }
