/* Sudo Freight: brand red #ff0037, charcoal #454444 */
:root {
  --red: #ff0037;
  --red-hover: #e0002f;
  --red-soft: #fff0f3;
  --green: #16a34a;
  --green-hover: #15803d;
  --ink: #1d1c1c;
  --ink-2: #454444;
  --muted: #6b6a6a;
  --line: #e8e6e6;
  --bg: #ffffff;
  --bg-alt: #f7f6f6;
  --card: #ffffff;
  --dark: #232222;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 24px rgba(0,0,0,.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Armenian", Helvetica, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --red: #ff3358;
    --red-hover: #ff5573;
    --red-soft: #2b1419;
    --green: #1fa855;
    --green-hover: #22c55e;
    --ink: #f1efef;
    --ink-2: #d6d3d3;
    --muted: #a4a0a0;
    --line: #333131;
    --bg: #161515;
    --bg-alt: #1d1c1c;
    --card: #211f1f;
    --dark: #0f0e0e;
    --shadow: 0 1px 2px rgba(0,0,0,.4);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { font: .88em/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: .15em .4em; white-space: nowrap; }
.i { width: 1.25em; height: 1.25em; flex: none; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 6px; }

/* buttons & links */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.4em; border-radius: 10px; border: 2px solid var(--red);
       background: var(--red); color: #fff; font-weight: 650; text-decoration: none; line-height: 1.2; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { background: var(--red-hover); border-color: var(--red-hover); transform: translateY(-1px); }
.btn-sm { padding: .5em 1em; font-size: .92rem; }
.btn-lg { padding: 1em 1.8em; font-size: 1.1rem; }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-hover); border-color: var(--green-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--ink-2); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.link { color: var(--red); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent);
       backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 1.15rem; color: var(--ink-2); }
.brand img { height: 30px; width: auto; }
.brand span { padding-top: 4px; }
.logo-light { display: none; }
@media (prefers-color-scheme: dark) { .top .logo-dark { display: none; } .top .logo-light { display: block; } .brand { color: var(--ink); } }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 550; font-size: .95rem; }
.nav a:hover { background: var(--bg-alt); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--red); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.nav-admin { display: none; }
.lang { text-decoration: none; font-weight: 700; font-size: .85rem; color: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.lang:hover { border-color: var(--ink-2); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px;
        background: radial-gradient(1100px 520px at 50% -12%, var(--red-soft), transparent 72%), var(--bg); }
.hero-in { text-align: center; }
.hero-in .lead { margin: 0 auto 32px; max-width: 36em; }
.hero-in .actions { justify-content: center; }
.hero-video { max-width: 780px; margin-top: 52px; }
.kicker { display: inline-block; margin: 0 0 16px; color: var(--red); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); font-weight: 800; letter-spacing: -.025em; margin: 0 auto 20px; max-width: 15em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }

/* sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-tight { padding-top: 8px; padding-bottom: 80px; }
.h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 32px; max-width: 22em; }
.h3 { font-size: 1.35rem; font-weight: 750; margin-bottom: 20px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-even { align-items: start; }
.split .h2 { margin-bottom: 12px; }

.grid { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
/* feature rows: text + its video, alternating sides */
.features { display: grid; gap: 72px; margin-top: 16px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; max-width: 1000px; margin: 0 auto; }
.feature-media { max-width: 480px; width: 100%; }
.feature-flip .feature-media { justify-self: end; }
.feature-flip .feature-copy { order: 2; }
.feature-icon .i { width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: var(--red-soft); color: var(--red); margin-bottom: 18px; }
.feature h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 800; letter-spacing: -.015em; }
.feature p { color: var(--muted); font-size: 1.08rem; }
.also { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--red); font-weight: 600; text-decoration: none; }
.also .i { width: 18px; height: 18px; }
.also:hover { text-decoration: underline; }
.more-h { margin: 88px 0 20px; font-size: 1.2rem; font-weight: 800; }
.more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.more li { display: flex; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.more .i { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: var(--red-soft); color: var(--red); }
.more h3 { font-size: 1.02rem; margin-bottom: 4px; }
.more p { color: var(--muted); font-size: .95rem; margin: 0; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.chips li { padding: 14px 22px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 700; color: var(--ink-2); box-shadow: var(--shadow); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps a { display: block; height: 100%; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s, transform .15s; }
.steps a:hover { border-color: var(--red); transform: translateY(-2px); }
.steps .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; margin-bottom: 16px; }
.steps h3 { font-size: 1.12rem; }
.steps p { color: var(--muted); margin: 0; font-size: .98rem; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 48px; border-radius: 22px; color: #fff;
       background: radial-gradient(600px 300px at 100% 0%, rgba(255,0,55,.35), transparent 70%), var(--dark); }
.cta h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; }
.cta p { margin: 0; color: rgba(255,255,255,.75); }

.contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact .card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; }
.contact .i { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--red-soft); color: var(--red); }
.contact div { display: flex; flex-direction: column; }
.contact span { font-size: .85rem; }
.contact a { font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.contact a:hover { color: var(--red); }

/* videos */
.video { margin: 0; }
.yt { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer;
      background: #000; aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.yt img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt img { transition: transform .3s, opacity .3s; opacity: .92; }
.yt:hover img { transform: scale(1.03); opacity: 1; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 14px; display: grid; place-items: center;
           background: var(--red); color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .15s; }
.yt-play .i { width: 26px; height: 26px; }
.yt:hover .yt-play { transform: scale(1.08); }
.video figcaption { margin-top: 12px; font-weight: 650; }
.yt-hero { border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.20); outline: 10px solid var(--card); }
.yt-hero .yt-play { width: 96px; height: 68px; margin: -34px 0 0 -48px; border-radius: 18px; }
.yt-hero .yt-play .i { width: 34px; height: 34px; }
.hero-video > .yt { border-radius: 20px; }

/* tutorials */
.toc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.toc a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px 20px;
         border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.toc a:hover { border-color: var(--red); transform: translateY(-2px); }
.toc .i { grid-row: span 2; width: 42px; height: 42px; padding: 10px; border-radius: 11px; background: var(--red-soft); color: var(--red); }
.toc span { font-weight: 750; }
.toc small { color: var(--muted); }
.tut { padding-bottom: 80px; }
.tut-section { padding-top: 56px; }
.tut-head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.tut-icon .i { width: 52px; height: 52px; padding: 12px; border-radius: 14px; background: var(--red); color: #fff; }
.tut-head h2 { font-size: 1.6rem; font-weight: 800; margin: 0 0 2px; }
.tut-head p { margin: 0; color: var(--muted); }
.lessons { list-style: none; margin: 0; padding: 0; }
.lesson { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: 32px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.lesson:last-child { border-bottom: 0; }
.lesson-copy h3 { font-size: 1.2rem; font-weight: 750; margin-bottom: 6px; }
.lesson-copy p { color: var(--muted); margin: 0 0 8px; }
.lesson-copy .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red-soft); color: var(--red); font-weight: 800; font-size: .9rem; margin-bottom: 10px; }
.lesson-ph { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: var(--radius); border: 2px dashed var(--line); color: var(--red); }
.lesson-ph .i { width: 44px; height: 44px; }

/* page heads, download, tutorials, prose */
.page-head { padding: 64px 0 40px; background: radial-gradient(700px 360px at 50% -20%, var(--red-soft), transparent 70%); }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; }
.page-head .center .lead { margin-left: auto; margin-right: auto; }
.page-head .center .lead { margin-bottom: 28px; }
.page-head .small { margin-top: 12px; }
.app-icon { width: 72px; height: 72px; margin: 0 auto 20px; }
.list-steps { margin: 0; padding-left: 1.3em; }
.list-steps li { margin: 0 0 10px; padding-left: 4px; }
.list-steps li::marker { color: var(--red); font-weight: 800; }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 48px 0 32px; }
.note { padding: 22px 24px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); }
.note h3 { font-size: 1.05rem; }
.note p { color: var(--muted); font-size: .97rem; }
.note p:last-child { margin: 0; }
.nf-alt { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.group { padding-top: 40px; }
.group .grid { gap: 28px 20px; }
.prose h2 { font-size: 1.25rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 4px; }
.prose a { color: var(--red); }

/* footer */
.foot { padding: 48px 0; background: var(--dark); color: rgba(255,255,255,.85); }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.brand-foot { color: #fff; margin-bottom: 12px; }
.foot .muted { color: rgba(255,255,255,.55); margin: 0; font-size: .9rem; }
.foot-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; align-content: start; }
.foot-nav a { text-decoration: none; color: rgba(255,255,255,.8); font-size: .95rem; }
.foot-nav a:hover { color: #fff; }

/* responsive */
@media (max-width: 960px) {
  .split, .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature-flip .feature-copy { order: 0; }
  .features { gap: 56px; }
  .grid-3, .steps, .more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips { justify-content: flex-start; }
  .lesson { grid-template-columns: minmax(0, 300px) 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top-in { height: auto; flex-wrap: wrap; row-gap: 0; padding-top: 10px; }
  .top-actions { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0 -12px; flex-wrap: wrap; row-gap: 0; padding-bottom: 6px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .top-admin { display: none; }
  .nav .nav-admin { display: block; color: var(--red); }
  .hero { padding: 40px 0 56px; }
  .section { padding: 56px 0; }
  .grid-3, .steps, .notes, .more, .toc { grid-template-columns: 1fr; }
  .lesson { grid-template-columns: 1fr; gap: 14px; }
  .hero-video { margin-top: 40px; }
  .yt-hero { outline-width: 6px; }
  .cta { padding: 32px 24px; }
  .foot-nav { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.section-flush { padding-top: 0; }
.section-top-0 { padding-top: 16px; }

/* phone setup: one row per brand (name on the left, its videos on the right) */
.brands { display: grid; gap: 20px; margin-top: 24px; }
.brand-card { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.brand-card header { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 4px; }
.brand-card h3 { margin: 0; font-size: 1.3rem; font-weight: 800; }
.tag { font-size: .8rem; font-weight: 650; color: var(--muted); background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.brand-media { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 20px; }
.brand-media .video figcaption { font-size: .95rem; margin-top: 10px; }
@media (max-width: 760px) {
  .brand-card { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .brand-card header { flex-direction: row; align-items: center; justify-content: space-between; }
  .brand-media { grid-template-columns: 1fr; }
}
