/* AJONS Apps — downloads design system.
   Light, spacious, product-led. Kept separate from the legacy styles.css so the
   existing sub-pages keep rendering until they are converted onto this system. */

:root {
  --ink: #1f1f1f;
  --ink-soft: #5f6368;
  --ink-faint: #80868b;
  --line: #e3e5e8;
  --line-soft: #f1f3f4;
  --surface: #ffffff;
  --surface-sunk: #f8f9fa;
  --surface-raised: #ffffff;

  --brand: #1a73e8;
  --brand-dark: #1558c0;
  --brand-wash: #e8f0fe;
  --cyan: #22d3ee;
  --violet: #7c4dff;
  --green: #12a150;
  --amber: #f29d38;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(60, 64, 67, .1), 0 1px 3px rgba(60, 64, 67, .08);
  --shadow: 0 1px 3px rgba(60, 64, 67, .12), 0 8px 24px rgba(60, 64, 67, .08);
  --shadow-lg: 0 4px 12px rgba(60, 64, 67, .12), 0 20px 48px rgba(60, 64, 67, .14);

  --wrap: 1200px;
  --nav-h: 72px;

  --font: "Google Sans", "Product Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

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

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

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  padding: 12px 24px; font-size: .95rem; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: background .18s, box-shadow .18s, border-color .18s, color .18s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { background: var(--brand-wash); border-color: transparent; }
.btn-quiet { background: var(--surface-sunk); color: var(--ink); }
.btn-quiet:hover { background: var(--line-soft); }
.btn-sm { padding: 9px 18px; font-size: .875rem; }

/* ------------------------------------------------------------------- nav */

.topbar {
  position: sticky; top: 0; z-index: 60;
  transition: transform .32s cubic-bezier(.22, 1, .36, 1);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar.retract { transform: translateY(-100%); }
.topbar-inner {
  height: var(--nav-h); display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; }

.mainnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.barActions { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.navitem { position: relative; }
.navlink {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: var(--radius-pill);
  color: var(--ink); font-size: .95rem; font-weight: 500; background: none;
  border: 0; font-family: inherit; cursor: pointer;
}
.navlink:hover { background: var(--surface-sunk); text-decoration: none; }
.navlink[aria-expanded="true"] { background: var(--brand-wash); color: var(--brand-dark); }
.navlink .chev { width: 16px; height: 16px; transition: transform .18s; }
.navlink[aria-expanded="true"] .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 300px;
  background: var(--surface-raised); border: 1px solid var(--line-soft);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown.right { left: auto; right: 0; }
.dropdown-title {
  font-size: .72rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700; padding: 8px 12px 4px;
}
.dropitem {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink);
}
.dropitem:hover { background: var(--surface-sunk); text-decoration: none; }
.dropitem-ico {
  width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--surface-sunk); font-size: 1rem;
}
.dropitem-name { font-weight: 600; font-size: .93rem; }
.dropitem-desc { color: var(--ink-soft); font-size: .82rem; line-height: 1.45; }

.navtoggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.navtoggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.navtoggle span + span { margin-top: 5px; }

/* floating pill that takes over once the hero scrolls away */
.pillbar {
  position: fixed; left: 50%; top: 14px; z-index: 70;
  transform: translate(-50%, -140%);
  display: flex; align-items: center; gap: 4px; padding: 7px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: var(--radius-pill); box-shadow: var(--shadow-lg);
  transition: transform .34s cubic-bezier(.22, 1, .36, 1), opacity .24s;
  opacity: 0;
}
.pillbar.show { transform: translate(-50%, 0); opacity: 1; }
.pilllink {
  padding: 9px 16px; border-radius: var(--radius-pill); font-size: .9rem;
  font-weight: 500; color: var(--ink); background: none; border: 0;
  font-family: inherit; cursor: pointer;
}
.pilllink:hover { background: var(--surface-sunk); text-decoration: none; }
.pilllink.active { background: var(--surface-sunk); font-weight: 600; }

/* ------------------------------------------------------------ download menu */

.dlwrap { position: relative; }
.dlmenu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 320px; z-index: 80;
  background: var(--surface-raised); border: 1px solid var(--line-soft);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.dlmenu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dlrow { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius-sm); color: var(--ink); }
.dlrow:hover { background: var(--surface-sunk); text-decoration: none; }
.dlrow-ico { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; color: #fff; font-size: 1rem; }
.dlrow-name { font-weight: 600; font-size: .93rem; }
.dlrow-meta { color: var(--ink-faint); font-size: .8rem; }
.dlnote { padding: 10px 12px 4px; color: var(--ink-faint); font-size: .78rem; border-top: 1px solid var(--line-soft); margin-top: 6px; }

/* ------------------------------------------------------------------ hero */

.hero { padding: 64px 0 24px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 7px 16px; border-radius: var(--radius-pill);
  background: var(--brand-wash); color: var(--brand-dark);
  font-size: .82rem; font-weight: 600;
}
.hero h1 {
  margin: 0 0 18px; font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08; letter-spacing: -.02em; font-weight: 700;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--cyan), var(--brand) 55%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { margin: 0 auto 30px; max-width: 620px; color: var(--ink-soft); font-size: 1.12rem; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------- banner */

.banner { margin: 44px 0 8px; }
.slides {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: #06121f; aspect-ratio: 1920 / 819;
}
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease;
  display: grid; place-items: center;
}
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
/* Shown until real artwork is dropped into static/assets/banners/. */
.slide-fallback {
  width: 100%; height: 100%; display: grid; place-content: center; gap: 10px; text-align: center;
  padding: 40px; color: #cfe4ff;
  background:
    radial-gradient(1200px 400px at 20% -10%, rgba(34, 211, 238, .28), transparent 60%),
    radial-gradient(900px 400px at 90% 110%, rgba(124, 77, 255, .3), transparent 60%),
    linear-gradient(160deg, #071527, #0b1f38);
}
.slide-fallback strong { font-size: clamp(2rem, 5vw, 3.4rem); color: #fff; letter-spacing: -.02em; }
.slide-fallback span { font-size: .95rem; opacity: .8; }
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--line); transition: width .2s, background .2s;
}
.dot.on { width: 26px; border-radius: var(--radius-pill); background: var(--brand); }

/* ------------------------------------------------------------- free plan */

.freeplan {
  margin: 72px 0; padding: 46px; border-radius: var(--radius-lg);
  background: linear-gradient(140deg, #f6faff, #eef4ff 60%, #f4f0ff);
  border: 1px solid var(--line-soft);
  display: grid; gap: 40px; grid-template-columns: 1fr;
}
@media (min-width: 900px) { .freeplan { grid-template-columns: 1.05fr 1fr; align-items: center; } }
.bignum { font-size: clamp(4rem, 12vw, 7.5rem); line-height: .9; font-weight: 800; letter-spacing: -.04em;
  background: linear-gradient(120deg, var(--cyan), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bignum-unit { font-size: clamp(1.6rem, 4vw, 2.6rem); color: var(--ink); font-weight: 600; margin-left: 10px; letter-spacing: -.01em; }
.freeplan-sub { color: var(--ink-soft); font-size: 1.05rem; margin-top: 8px; }
.facts { display: grid; gap: 22px; }
.fact { display: flex; gap: 14px; }
.fact-ico { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-sm); }
.fact-title { font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; color: var(--brand-dark); }
.fact-body { color: var(--ink-soft); font-size: .95rem; }

/* ------------------------------------------------------------- sections */

.section { padding: 72px 0; }
.section-head { max-width: 660px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; font-weight: 700; }
.section-head p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }

.appgrid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.appcard {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px;
  background: var(--surface); transition: box-shadow .2s, transform .2s, border-color .2s;
  display: flex; flex-direction: column; gap: 14px;
}
.appcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.appcard-top { display: flex; align-items: center; gap: 14px; }
.appcard-ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; font-size: 1.4rem; }
.appcard h3 { margin: 0; font-size: 1.3rem; font-weight: 700; }
.appcard-kicker { font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; color: var(--ink-faint); }
.appcard p { margin: 0; color: var(--ink-soft); flex: 1; }
.appcard-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: var(--radius-pill); background: var(--surface-sunk);
  font-size: .78rem; font-weight: 600; color: var(--ink-soft);
}
.pill.live { background: #e6f4ea; color: #137333; }

/* alternating screenshot + copy */
.showcase { display: grid; gap: 44px; align-items: center; grid-template-columns: 1fr; padding: 40px 0; }
@media (min-width: 940px) {
  .showcase { grid-template-columns: 1fr 1fr; gap: 64px; }
  .showcase.flip .showcase-media { order: 2; }
}
.showcase + .showcase { border-top: 1px solid var(--line-soft); }
.showcase-copy h3 { margin: 0 0 14px; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.02em; }
.showcase-copy p { color: var(--ink-soft); margin: 0 0 18px; }
.checks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; color: var(--ink-soft); }
.checks li::before { content: "✓"; color: var(--green); font-weight: 700; }

.shots { display: grid; gap: 14px; }
.shot {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--surface-sunk); box-shadow: var(--shadow); aspect-ratio: 1920 / 1000;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-empty {
  width: 100%; height: 100%; display: grid; place-content: center; gap: 6px; text-align: center;
  color: var(--ink-faint); font-size: .85rem; padding: 20px;
  background: repeating-linear-gradient(45deg, #f8f9fa, #f8f9fa 12px, #f2f4f6 12px, #f2f4f6 24px);
}
.shot-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.shot-strip .shot { aspect-ratio: 1920 / 1000; box-shadow: var(--shadow-sm); cursor: pointer; }
.shot-thumb { padding: 0; border: 1px solid var(--line); background: none; display: block; }
.shot-thumb:hover { border-color: var(--brand); }
.shot-thumb.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-wash); }

/* -------------------------------------------------------------- releases */

.notes { display: grid; gap: 12px; }
.note {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px;
  border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface-sunk);
}
.note-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 9px; flex: none; }

.faq { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
details.qa { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 4px 6px; }
details.qa[open] { box-shadow: var(--shadow-sm); }
details.qa summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; color: var(--ink-faint); font-weight: 400; font-size: 1.3rem; line-height: 1; }
details.qa[open] summary::after { content: "–"; }
details.qa p { margin: 0; padding: 0 18px 18px; color: var(--ink-soft); }

.cta {
  margin: 40px 0 80px; padding: 60px 40px; text-align: center;
  border-radius: var(--radius-lg); color: #fff;
  background: radial-gradient(900px 300px at 15% 0%, rgba(34, 211, 238, .3), transparent 60%),
              linear-gradient(140deg, #0b2545, #123a6b);
}
.cta h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; }
.cta p { margin: 0 auto 28px; max-width: 560px; color: #c9dcf5; }
.cta .btn-primary { background: #fff; color: var(--brand-dark); }
.cta .btn-primary:hover { background: #eaf1fd; }

/* --------------------------------------------------------------- footer */

.sitefooter { border-top: 1px solid var(--line-soft); background: var(--surface-sunk); padding: 56px 0 32px; color: var(--ink-soft); font-size: .92rem; }
.sitefooter a { color: var(--ink-soft); }
.sitefooter a:hover { color: var(--brand); }

/* -------------------------------------------------------------- mobile */

@media (max-width: 900px) {
  .mainnav {
    position: fixed; inset: var(--nav-h) 0 auto; margin: 0; padding: 12px 20px 26px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .mainnav.open { display: flex; }
  .navitem { width: 100%; }
  .navlink { width: 100%; justify-content: space-between; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--line-soft);
    border-radius: 0; margin: 2px 0 8px 14px; padding: 4px; display: none; min-width: 0;
  }
  .dropdown.open { display: block; }
  .navtoggle { display: block; }
  .pillbar {
    left: 10px; right: 10px; top: 10px; transform: translateY(-160%);
    width: auto; max-width: none; overflow-x: auto; scrollbar-width: none;
    justify-content: flex-start;
  }
  .pillbar::-webkit-scrollbar { display: none; }
  .pillbar.show { transform: translateY(0); }
  .pillbar .dlwrap { margin-left: auto; position: sticky; right: 0; }
  .pilllink { padding: 8px 13px; font-size: .86rem; }
  .freeplan { padding: 32px 24px; }
  .hero { padding: 44px 0 16px; }
  .dropdown { min-width: 0; }
  .dlmenu { width: min(320px, calc(100vw - 32px)); }
  .section { padding: 52px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------- support ticket */

.ticket { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ticket-fab {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  border: 0; border-radius: var(--radius-pill); padding: 13px 20px;
  background: var(--brand); color: #fff; font-family: inherit; font-size: .9rem; font-weight: 600;
  box-shadow: var(--shadow-lg); transition: background .18s, transform .18s;
}
.ticket-fab:hover { background: var(--brand-dark); transform: translateY(-1px); }
.ticket-fab-tag { background: rgba(255, 255, 255, .18); border-radius: var(--radius-pill); padding: 3px 9px; font-size: .72rem; }
.ticket-panel {
  width: 380px; max-width: calc(100vw - 40px); order: -1;
  background: var(--surface-raised); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 20px;
}
.ticket-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ticket-title { font-weight: 700; }
.ticket-sub { color: var(--ink-faint); font-size: .82rem; }
.ticket-form { display: grid; gap: 12px; }
.field { display: grid; gap: 5px; font-size: .84rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .92rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; background: var(--surface); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-wash);
}
.field textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-check { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--ink-soft); }
.ticket-status { font-size: .84rem; min-height: 1.2em; color: var(--ink-soft); }
.ticket-status[data-kind="ok"] { color: var(--green); }
.ticket-status[data-kind="error"] { color: #d93025; }

@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- footer layout */

.sitefooter .footerGrid {
  display: grid; gap: 32px 24px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  padding-bottom: 40px;
}
.sitefooter .footerTitle {
  font-weight: 700; color: var(--ink); font-size: .95rem; margin-bottom: 14px;
}
.sitefooter .footerList { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.sitefooter .footerList a { display: inline-flex; align-items: center; gap: 5px; }
.sitefooter .footerList .ext { font-size: .78em; opacity: .55; }

.sitefooter .footerBottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap;
}
.sitefooter .footerBrand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; color: var(--ink); font-size: .95rem;
}
.sitefooter .footerBrand img { border-radius: 6px; }
.sitefooter .footerLegal { display: inline-flex; gap: 22px; flex-wrap: wrap; }
.sitefooter .footerCopy { color: var(--ink-faint); font-size: .86rem; }
.sitefooter .footerLegal { margin-left: auto; }

@media (max-width: 640px) {
  .sitefooter .footerLegal { margin-left: 0; }
  .sitefooter .footerBottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ------------------------------------------------------------- app pages */

.apphero { display: grid; gap: 40px; padding: 48px 0 24px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .apphero { grid-template-columns: 1fr 1.05fr; gap: 56px; } }
.crumb { display: inline-block; margin-bottom: 18px; font-size: .9rem; font-weight: 500; }
.apphero-title { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.apphero-title h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; }
.apphero-copy > p { color: var(--ink-soft); font-size: 1.08rem; margin: 0 0 24px; }
.metaline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.metaline.muted-line { color: var(--ink-faint); font-size: .86rem; }
.detailsActions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Chrome blocks some unsigned installers on download with no way to override.
   The same build inside a ZIP comes through, so the fallback sits directly under
   the download button - quiet enough not to compete with it, close enough to be
   found by someone who has just been blocked. */
.dlfallback { margin: 12px 0 0; font-size: .88rem; color: var(--ink-faint); }
.dlfallback a { color: var(--brand); font-weight: 500; text-decoration: none; }
.dlfallback a:hover, .dlfallback a:focus-visible { text-decoration: underline; }

.callout {
  border: 1px solid #fde4c0; background: #fff8ef; border-radius: var(--radius);
  padding: 16px 18px; color: #7a4a12; margin-bottom: 20px; font-size: .94rem;
}
.callout strong { color: #5c3609; }

ol.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 780px; }
ol.steps li {
  counter-increment: step; position: relative; padding: 14px 18px 14px 56px;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--surface-sunk); color: var(--ink-soft);
}
ol.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 13px;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-size: .8rem; font-weight: 700;
}
a.appcard { color: inherit; }
a.appcard:hover { text-decoration: none; }

/* -------------------------------------------------------- tutorials page */

.tutorialLayout { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .tutorialLayout { grid-template-columns: 260px 1fr; gap: 40px; } }
.tutorialAside { position: sticky; top: 96px; }
.asideTitle { font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; color: var(--ink-faint); margin-bottom: 12px; }
.applist { display: grid; gap: 6px; }
.applist button, .applist a {
  display: block; width: 100%; text-align: left; cursor: pointer; font-family: inherit;
  border: 1px solid transparent; background: none; color: var(--ink);
  padding: 11px 14px; border-radius: var(--radius-sm); font-size: .95rem; font-weight: 500;
}
.applist button:hover, .applist a:hover { background: var(--surface-sunk); text-decoration: none; }
.applist .active, .applist [aria-selected="true"] { background: var(--brand-wash); color: var(--brand-dark); font-weight: 600; }

.tutorialMain { min-width: 0; }
.tutorialHead { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-start; }
.tutorialHead h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; }
.empty-note { color: var(--ink-faint); padding: 40px 0; }
.muted-line { color: var(--ink-soft); font-size: .92rem; }

.tutorialList { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 18px; }
.tutorialList > * {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); transition: box-shadow .2s, transform .2s;
}
.tutorialList > *:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tutorialList img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.videoModal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.videoModal.hidden { display: none; }
.videoBackdrop { position: absolute; inset: 0; background: rgba(15, 20, 28, .6); backdrop-filter: blur(3px); }
.videoCard {
  position: relative; width: min(920px, 100%); background: var(--surface);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.videoHeader { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.videoTitle { font-weight: 700; }
.videoFrameWrap { aspect-ratio: 16 / 9; background: #000; }
.videoFrameWrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.videoActions { padding: 14px 20px; }
.mobileOnly { display: none; }
@media (max-width: 900px) { .tutorialAside { position: static; } }

/* Classes rendered by tutorials.js / app_page.js at runtime. Without these the
   markup lands unstyled, and the hidden drawer stays visible as a duplicate list. */

.hidden { display: none !important; }
.muted { color: var(--ink-soft); }
.mobileOnly { display: none; }

/* Legacy button variant still emitted by the runtime scripts. */
.btn.secondary {
  background: transparent; color: var(--brand); border-color: var(--line);
}
.btn.secondary:hover { background: var(--brand-wash); border-color: transparent; }

/* App picker */
.applist .item {
  display: block; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid transparent; color: var(--ink); cursor: pointer;
}
.applist .item:hover { background: var(--surface-sunk); text-decoration: none; }
.applist .item .title { font-weight: 600; font-size: .95rem; line-height: 1.35; }
.applist .item .sub {
  color: var(--ink-faint); font-size: .82rem; line-height: 1.4; margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.applist .item.active {
  background: var(--brand-wash); border-color: transparent;
}
.applist .item.active .title { color: var(--brand-dark); }
.applist .item.active .sub { color: var(--brand-dark); opacity: .75; }

/* Tutorial cards */
.tutorialList { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-top: 20px; }
.tutorialItem {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); transition: box-shadow .2s, transform .2s, border-color .2s;
}
.tutorialItem:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.tutorialMeta { min-width: 0; }
.tutorialNumber {
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; color: var(--brand); margin-bottom: 5px;
}
.tutorialTitle { font-weight: 600; line-height: 1.4; }
.tutorialWatchBtn { flex: none; }
.tutorialWatchBtn::before { content: "▶"; font-size: .7em; }

.latestMeta { color: var(--ink-faint); font-size: .84rem; margin-top: 6px; }
