/* fonts: self-hosted Inter (no layout jump) + metric-matched fallback */
@font-face { font-family: "Inter"; src: url("/fonts/InterVariable.latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "InterFallback"; src: local("Arial"); size-adjust: 106.84%; ascent-override: 90.7%; descent-override: 22.6%; line-gap-override: 0%; }
/* Preview design for vrtsacademy (?design=clips). Loaded only when html.clips is set by clips.js. */
html.clips {
  --bg: #eeeeed;
  --surface: #fafaf8;
  --ink: #0b0b0c;
  --muted: #5b5b58;
  --muted-2: #5b5b58;
  --line: #d8d8d4;
  --line-soft: #d8d8d4;
  --input-border: #cfcfca;
  --accent: #0b7a55;
  --accent-ink: #ffffff;
  --mint: #00e599;
  --radius: 16px;
  --font-display: "Inter", "InterFallback", Arial, sans-serif;
  --font-body: "Inter", "InterFallback", Arial, sans-serif;
  --max: 1240px;
}

html.clips body {
  background: var(--bg);
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv01";
}

.clips-only { display: none; }
html.clips .clips-only { display: block; }
html.clips .hero-clips.clips-only { display: grid; }

/* header */
html.clips .site-header {
  background: #eeeeed;
  backdrop-filter: none;
  border-bottom: 0;
}
html.clips .site-header .wrap { padding-top: 22px; padding-bottom: 22px; }
html.clips .logo { font-size: 24px; font-weight: 700; letter-spacing: -0.04em; }
html.clips .search input { border-radius: 99px; padding: 12px 20px; background: #fafaf8; }
html.clips .nav-auth {
  border: 1px solid var(--ink);
  border-radius: 99px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
}
html.clips .nav-link { font-size: 14px; font-weight: 500; }
html.clips .results-label { font-size: 12px; }

/* hero */
html.clips .hero {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 96px max(24px, calc((100% - 1240px) / 2)) 96px;
  background: radial-gradient(60% 90% at 85% 40%, rgba(0, 229, 153, .14), transparent 60%), #0b0b0c;
  color: #f2f2f0;
  overflow: hidden;
}
html.clips .hero > .eyebrow,
html.clips .hero > h1,
html.clips .hero > p:not(.hero-stat) { display: none; }
.hero-clips { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.hero-clips__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-clips__kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff3b4e; }
.hero-clips h1 {
  font-size: clamp(44px, 7.2vw, 100px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.045em;
  text-transform: uppercase;
  margin: 0;
}
.hero-clips h1 span { display: block; color: var(--mint); }
.hero-clips p.lead { margin-top: 28px; max-width: 480px; font-size: 18px; line-height: 1.5; color: #d0d0cc; }
.hero-clips__btns { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 26px; border-radius: 99px;
  font-size: 16px; font-weight: 500; cursor: pointer; border: 1px solid transparent;
}
.pill-btn.light { background: #f2f2f0; color: #0b0b0c; }
.pill-btn.line { background: transparent; color: #f2f2f0; border-color: #5a5a58; }
.hero-clips__meta { margin-top: 28px; font-size: 13px; color: #a8a8a4; }
html.clips .hero-stat { margin-top: 28px; background: transparent; border-color: #3a3a38; color: #f2f2f0; position: relative; }

/* floating chips on the right of hero */
.hero-float { position: relative; height: 340px; }
.hero-float .chip {
  position: absolute; padding: 12px 20px; border-radius: 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  color: #f2f2f0; font-size: 18px; font-weight: 600; backdrop-filter: blur(6px);
}
.hero-float .chip.c1 { left: 6%; top: 8%; transform: rotate(-6deg); }
.hero-float .chip.c2 { right: 2%; top: 22%; transform: rotate(5deg); }
.hero-float .chip.c3 { left: 18%; top: 48%; transform: rotate(3deg); font-size: 34px; font-weight: 500; color: #0b0b0c; background: var(--mint); border-color: var(--mint); letter-spacing: -.03em; padding: 18px 28px; }
.hero-float .chip.c4 { right: 8%; bottom: 8%; transform: rotate(-4deg); }

/* ticker */
.ticker { background: var(--mint); color: #0b0b0c; overflow: hidden; white-space: nowrap; }
.ticker__row { display: inline-flex; gap: 40px; padding: 14px 0; animation: ticker 40s linear infinite; font-size: 22px; font-weight: 600; letter-spacing: -.02em; text-transform: uppercase; }
.ticker__row span::after { content: "\2197"; margin-left: 40px; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__row { animation: none; } }

/* numbered sections */
.sec { width: min(1240px, 100%); margin: 0 auto; padding: 96px 24px 24px; }
.sec__label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 36px; }
.sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.sec h2 {
  font-size: clamp(36px, 5.4vw, 76px); font-weight: 500; line-height: .95;
  letter-spacing: -.045em; text-transform: uppercase; margin: 0;
}
.sec h2 span { display: block; color: var(--accent); }
.sec__note { max-width: 300px; font-size: 15px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; min-height: 260px; display: flex; flex-direction: column; }
.step__n { font-size: 13px; font-weight: 700; color: var(--accent); }
.step h3 { font-size: 30px; font-weight: 500; letter-spacing: -.03em; line-height: 1.05; margin: 14px 0 12px; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.step__foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }

/* plans (rendered by app.js) */
html.clips .plans-band { width: min(1240px, 100%); margin: 0 auto; padding: 56px 24px 0; }
html.clips .plans-head h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 500; letter-spacing: -.045em; text-transform: uppercase; line-height: .95; }
html.clips .plan-tier { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: none; }
html.clips .plan-tier__name { font-size: 28px; font-weight: 500; letter-spacing: -.03em; }
html.clips .plan-tier__price { font-weight: 500; letter-spacing: -.04em; }

/* catalog */
html.clips .filters, html.clips .catalog { width: min(1240px, 100%); }
html.clips .pill { border-radius: 99px; background: var(--surface); border-color: var(--line); padding: 9px 18px; }
html.clips .pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }
html.clips .card { background: var(--surface); border-color: var(--line); border-radius: 18px; box-shadow: none; }
html.clips .card:hover { border-color: var(--ink); }
html.clips .card-price { font-weight: 600; letter-spacing: -.02em; }
html.clips .card-cta { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
html.clips .btn-primary { background: var(--ink); color: #fff; border-radius: 99px; }

/* stats band */
.stats { background: #0b0b0c; color: #f2f2f0; margin-top: 96px; padding: 96px max(24px, calc((100% - 1240px) / 2)); }
.stats .sec__label { color: #f2f2f0; }
.stats h2 { font-size: clamp(36px, 5.4vw, 76px); font-weight: 500; line-height: .95; letter-spacing: -.045em; text-transform: uppercase; }
.stats h2 span { display: block; color: var(--mint); }
.stats__row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #2c2c2a; margin-top: 56px; }
.stats__cell { padding: 36px 24px 0 0; }
.stats__cell + .stats__cell { padding-left: 32px; border-left: 1px solid #2c2c2a; }
.stats__num { font-size: clamp(56px, 8vw, 110px); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.stats__num sup { font-size: .35em; color: var(--mint); vertical-align: top; margin-left: 4px; }
.stats__lbl { margin-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #bdbdb8; }

html.clips .site-footer { background: #0b0b0c; color: #a8a8a4; border-top: 1px solid #2c2c2a; }
html.clips .site-footer .logo { color: #f2f2f0; }

@media (max-width: 860px) {
  html.clips .hero { padding-top: 64px; padding-bottom: 64px; }
  html.clips .hero-clips.clips-only { grid-template-columns: 1fr; }
  .hero-float { height: 220px; }
  .steps { grid-template-columns: 1fr; }
  .stats__row { grid-template-columns: 1fr; }
  .stats__cell + .stats__cell { padding-left: 0; border-left: 0; border-top: 1px solid #2c2c2a; margin-top: 24px; }
  .sec { padding-top: 64px; }
}

/* owner 2026-10-20: dark hero removed (too much space) */
html.clips .hero { display: none; }

/* 2026-10-20 simpler flow: search/filters and courses first, no long intro */
html.clips .sec { display: none; }
html.clips .sec.clips-keep { display: block; }
html.clips .ticker { display: none; }
html.clips .filters { padding-top: 28px; }
html.clips .catalog { padding-top: 8px; }
.clips-quick { width: min(1240px, 100%); margin: 0 auto; padding: 8px 24px 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.clips-quick b { color: var(--ink); font-weight: 600; }
.clips-quick a { color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.card.clips-hidden { display: none !important; }
.clips-more { grid-column: 1 / -1; display: flex; justify-content: center; padding: 16px 0 8px; }
.clips-more button { height: 52px; padding: 0 28px; border-radius: 99px; border: 1px solid var(--ink); background: transparent; font-size: 16px; font-weight: 500; cursor: pointer; }
.clips-more button:hover { background: var(--ink); color: #fff; }
html.clips .plans-band.clips-moved { margin-top: 24px; }

/* 2026-10-20 bigger covers (3 columns like before) and a convenient filter bar */
html.clips .grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
html.clips .filters { position: relative; gap: 12px; padding-bottom: 14px; }
html.clips .pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
html.clips .pills::-webkit-scrollbar { display: none; }
html.clips .pill { flex: 0 0 auto; white-space: nowrap; }
html.clips .pills-source { display: none; }
.clips-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.clips-bar label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.clips-bar select {
  height: 44px; padding: 0 40px 0 18px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b0b0c' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center;
  appearance: none; -webkit-appearance: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer;
}
.clips-bar select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.clips-bar .clips-count { margin-left: auto; font-size: 14px; color: var(--muted); }
.clips-bar .clips-clear { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.clips-bar .clips-clear[hidden] { display: none; }
@media (min-width: 861px) {
  html.clips .filters { position: sticky; top: var(--clips-hdr, 91px); z-index: 9; background: var(--bg); padding-top: 14px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .clips-bar .clips-count { margin-left: 0; width: 100%; }
}

/* private offer bar (shown only to invited people) */
html.clips .offer-bar { background: var(--mint); color: #0b0b0c; padding: 12px 24px; gap: 14px 20px; font-size: 15px; }
html.clips .offer-bar .btn { background: #0b0b0c; color: #fff; border-radius: 99px; height: 40px; padding: 0 22px; font-weight: 600; }

/* 2026-10-20 checkout / profile / success pages in the same style */
html.clips .page-main { padding: 56px 24px 96px; }
html.clips .page-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: none; padding: 36px; }
html.clips .page-card h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
html.clips .page-card .amount { font-size: 44px; font-weight: 500; letter-spacing: -.05em; }
html.clips .eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
html.clips .btn { border-radius: 99px; height: 48px; padding: 0 24px; font-size: 15px; font-weight: 600; }
html.clips .btn-primary { background: var(--ink); color: #fff; }
html.clips .btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
html.clips .pay-tab { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
html.clips .pay-tab:hover { border-color: var(--ink); }
html.clips .pay-tab.is-on { border-color: var(--ink); outline: 1px solid var(--ink); outline-offset: -2px; }
html.clips .pay-tab.is-on .pay-tab-name { color: var(--ink); }
html.clips .pay-method { background: var(--surface); border-color: var(--line); }
html.clips .pay-method:hover, html.clips .pay-method.is-on { border-color: var(--ink); color: var(--ink); background: #fff; }
html.clips .invoice-box { background: #fff; border-color: var(--line); border-radius: 14px; }
html.clips .cabinet-order { background: #fff; border-radius: 16px; }
html.clips .cabinet-section-title { font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
html.clips .page-hint { color: var(--muted); }
html.clips .header-nav .nav-link.is-active { color: var(--ink); font-weight: 600; }

/* 2026-10-20 no shadows anywhere */
html.clips *, html.clips *::before, html.clips *::after { box-shadow: none !important; text-shadow: none !important; }
html.clips :focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 2px; }

/* 2026-10-20 no layout jump: order the blocks with CSS, reserve space for what loads later */
html.clips .clips-quick.clips-only { display: flex; }
html.clips .clips-bar.clips-only { display: flex; }
html.clips .shell > .site-header { order: 1; }
html.clips .shell > .clips-quick { order: 2; }
html.clips .shell > .filters { order: 3; }
html.clips .shell > .catalog { order: 4; }
html.clips .shell > .plans-band { order: 5; margin-top: 24px; }
html.clips .shell > .stats { order: 6; }
html.clips .shell > .site-footer { order: 7; }
html.clips .catalog #grid { min-height: 900px; }
html.clips .catalog:has(#grid:empty) ~ .stats, html.clips .catalog:has(#grid:empty) ~ .plans-band, html.clips .catalog:has(#grid:empty) ~ .site-footer { visibility: hidden; }
html.clips .clips-quick { min-height: 36px; }
html.clips .clips-bar { min-height: 44px; }
html.clips .card-body { min-height: 0; }

/* covers: reserve the image box (all covers are 40:21) so cards do not grow when images load */
html.clips .cover-slot.has-image { aspect-ratio: 40 / 21; height: auto; }
html.clips .cover-slot.has-image img { width: 100%; height: 100%; object-fit: contain; }
html.clips .results-label { min-width: 84px; text-align: right; }
html.clips .clips-bar .clips-count { min-width: 90px; text-align: right; }

.clips-bar select { min-width: 200px; }

html.clips .nav-auth { min-width: 96px; text-align: center; white-space: nowrap; }

/* 2026-10-20 P1: sticky buy bar in the course window, support/notes */
html.clips .modal { padding-bottom: 0; }
html.clips .modal-actions { position: sticky; bottom: 0; z-index: 3; margin: 12px -32px 0; padding: 14px 32px 16px; background: var(--surface); border-top: 1px solid var(--line); flex-wrap: wrap; gap: 10px 16px; align-items: center; }
html.clips .modal-note { flex: 1 1 100%; margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
html.clips .modal-note a, .clips-quick__pay a, .site-footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
html.clips .curriculum-label { color: var(--ink); }
html.clips .clips-quick .clips-quick__pay { flex: 1 1 100%; }
@media (max-width: 520px) { html.clips .modal { padding: 20px 20px 0; } html.clips .modal-actions { margin: 12px -20px 0; padding: 12px 20px 14px; } html.clips .modal-actions__btns { width: 100%; } html.clips .modal-actions__btns .btn { flex: 1; } }
.offer-hint { display: none; }

/* 2026-10-20 batch: signed-in chip, mobile header, sort, New badge, show-more, hints */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html.clips .nav-auth.is-signed-in { background: var(--ink); color: #fff; border-color: var(--ink); }
html.clips .nav-auth.is-signed-in ~ .nav-link { display: none; }
html.clips .pill { min-height: 44px; }
html.clips .card { position: relative; }
html.clips .card-cta { font-size: 13px; letter-spacing: 0; text-transform: none; }
html.clips .card-cat { font-size: 12px; }
.card-new { position: absolute; top: 12px; right: 12px; z-index: 3; padding: 4px 10px; border-radius: 99px; background: var(--mint); color: #0b0b0c; font-size: 12px; font-weight: 700; }
.clips-bar #clipsSort { min-width: 130px; }
.clips-bar .clips-sortlbl { margin-left: 4px; }
.clips-more { flex-direction: column; align-items: center; gap: 10px; }
.clips-more span { font-size: 14px; color: var(--muted); }
html.clips .pills { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
html.clips .pills.pills-end { -webkit-mask-image: none; mask-image: none; }
html.clips .empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
html.clips .empty strong { font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
@media (max-width: 640px) {
  html.clips .site-header .wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 12px; padding-top: 14px; padding-bottom: 14px; }
  html.clips .site-header .logo { grid-column: 1; font-size: 20px; }
  html.clips .site-header .header-nav { grid-column: 2; grid-row: 1; gap: 10px; }
  html.clips .site-header .search { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
  html.clips .nav-auth ~ .nav-link, html.clips .nav-auth ~ .results-label { display: none; }
  html.clips .clips-quick { font-size: 13px; gap: 4px 12px; }
  html.clips .clips-quick .clips-quick__pay { font-size: 12.5px; }
  .clips-bar { gap: 8px 12px; }
  .clips-bar label { display: none; }
  .clips-bar select { flex: 1 1 0; min-width: 0 !important; }
  .clips-bar .clips-count { width: 100%; text-align: left; }
}

/* 2026-10-20 profile: plan card, offer, help, order filter */
.cab-plan { margin-top: 18px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.cab-plan:empty { display: none; }
.cab-plan__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cab-plan__name { font-size: 20px; font-weight: 500; letter-spacing: -.03em; }
.cab-badge { padding: 3px 10px; border-radius: 99px; background: var(--mint); color: #0b0b0c; font-size: 12px; font-weight: 700; }
.cab-plan__line { margin-top: 8px; font-size: 15px; color: var(--ink); }
.cab-plan__sub { margin-top: 6px; font-size: 13px; color: var(--muted); }
.cab-plan__actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.cab-offer { margin-top: 14px; padding: 18px 20px; border-radius: 18px; background: var(--mint); color: #0b0b0c; display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; }
.cab-offer__t { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.cab-offer p { margin-top: 4px; font-size: 14px; }
.cab-help { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 0 18px; }
.cab-help summary { cursor: pointer; padding: 14px 0; font-size: 15px; font-weight: 600; }
.cab-help ol { margin: 0 0 14px 18px; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.cab-help a { text-decoration: underline; text-underline-offset: 3px; }
.cab-filter { display: flex; gap: 8px; margin: 0 0 14px; }
.cabinet-order[hidden] { display: none; }

/* inner pages: header first, then the content, then the footer */
html.clips .shell > .page-main { order: 2; }

/* owner 2026-10-20: filter bar scrolls away with the page (not pinned) */
@media (min-width: 861px) { html.clips .filters { position: static; top: auto; border-bottom: 0; background: transparent; z-index: auto; } }
