:root {
  --ink: #0c1526;
  --ink-soft: #162033;
  --paper: #f3f1eb;
  --paper-deep: #e7efe8;
  --surface: #fffcf7;
  --mint: #2fd6b0;
  --mint-deep: #0b7a66;
  --mint-ink: #06241d;
  --blue: #2a4a8c;
  --muted: #5a6573;
  --line: #d4d0c8;
  --line-strong: #b7c4c0;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --success: #067647;
  --success-bg: #ecfdf3;
  --shadow: 0 1px 2px rgba(12, 21, 38, 0.06);
  --radius: 6px;
  --radius-sm: 4px;
  --header-bg: #0c1526;
  --focus: 0 0 0 3px rgba(47, 214, 176, 0.45);
  --display: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --font: Inter, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; }
a { color: var(--mint-deep); }
a:hover { color: var(--ink); }
:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

h1, h2, h3, .price, .stat {
  font-family: var(--display);
  font-weight: 600;
}

.visually-hidden,
.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;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 40;
  background: var(--mint);
  color: var(--mint-ink);
  padding: 10px 14px;
  border-radius: 2px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header-bg);
  color: #fff;
  border-bottom: 1px solid rgba(47, 214, 176, 0.28);
  box-shadow: inset 0 3px 0 var(--mint);
}

.site-header a { color: #d5e0ec; text-decoration: none; }
.site-header a:hover,
.site-header a:focus-visible { color: var(--mint); }

.site-nav,
nav.site-nav {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: #fff;
  flex: 0 0 auto;
}
.brand span { color: #fff; }
.brand img {
  width: 36px;
  height: 26px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  padding: 2px;
  border: 1px solid rgba(47, 214, 176, 0.4);
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  clip: rect(0, 0, 0, 0);
}
.nav-toggle-label {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(47, 214, 176, 0.4);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  background: rgba(255, 255, 255, 0.04);
}
.nav-toggle-label::before,
.nav-toggle-label::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #fff;
}
.nav-toggle-label::before { top: 16px; box-shadow: 0 6px 0 #fff; }
.nav-toggle-label::after { bottom: 16px; }

.links,
.navlinks {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px 12px;
  flex-wrap: nowrap;
  min-width: 0;
}
.links a,
.navlinks a {
  color: #c9d6e4;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.links a:hover,
.navlinks a:hover { color: var(--mint); }
.links .button,
.navlinks .button,
.button.nav-cta {
  padding: 7px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  flex: 0 0 auto;
}

.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--mint);
  color: var(--mint-ink);
  text-decoration: none;
  border: 0;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
.button:hover,
button:hover { background: #4ae0bc; color: var(--mint-ink); }
.button.alt {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: none;
}
.button.alt:hover { background: var(--ink); color: #fff; }
.site-header .button,
.dark .button { color: var(--mint-ink); }

main { display: block; }
.page-main { padding: 40px 0 72px; }

.eyebrow {
  color: var(--mint-deep);
  font: 500 0.72rem/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 12px;
  background: var(--mint);
}
.dark .eyebrow,
.hero .eyebrow,
.intro .eyebrow { color: var(--mint); }

.hero,
.page-hero {
  max-width: 820px;
  margin-bottom: 28px;
}
.hero h1,
.intro h1,
.page-hero h1,
h1 {
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 10px 0 12px;
  font-weight: 600;
}
.hero p,
.page-hero p,
.lead {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  max-width: 38em;
}

.section,
.card,
.toc,
.facts,
.guide-card,
.plan,
.shot,
.limit {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section,
.toc { padding: 24px 26px; margin: 20px 0; }
.section h2,
.card h2,
.toc h2 {
  margin: 0 0 12px;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  letter-spacing: -0.02em;
}
.section h3 { margin: 28px 0 8px; font-size: 1.15rem; }
.section p,
.section li,
.card p { color: #3d4856; }
.section ul,
.section ol { padding-left: 1.2em; }
.section li { margin: 8px 0; }

.cards,
.plans,
.guide-grid,
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card,
.plan,
.guide-card { padding: 22px; }
.card h2,
.card h3,
.guide-card h3 { margin-top: 0; }
.badge {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--mint-deep);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.note,
.notice {
  padding: 16px 18px;
  border-left: 3px solid var(--mint);
  border-radius: 0;
  background: rgba(47, 214, 176, 0.1);
  color: #0f3f35;
  margin: 18px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.95rem;
}
th, td {
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
td { color: #334155; }
.archive-row td { color: var(--muted); background: rgba(12, 21, 38, 0.03); }
.muted { color: var(--muted); font-weight: 600; }
table .badge { margin: 0 0 0 8px; color: var(--mint-deep); }
.section,
.card { overflow-x: auto; }

.video,
.product-video {
  width: 100%;
  display: block;
  border-radius: 2px;
  border: 1px solid var(--ink);
  background: #07101f;
}

.format {
  display: block;
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: #0c1526;
  color: #c7f9ee;
  font-family: var(--mono);
  font-size: 0.92rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 28px;
  overflow: hidden;
}
.fact {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.fact:nth-child(odd) { border-right: 1px solid var(--line); }
.fact b {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.toc a {
  margin-right: 16px;
  white-space: nowrap;
  font-weight: 700;
}

.site-footer,
footer {
  padding: 42px 0;
  color: #9aabbd;
  background: var(--ink);
  border-top: 3px solid var(--mint);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.site-footer .wrap,
footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer a,
footer a { color: #c9d7eb; text-decoration: none; }
.site-footer a:hover { color: var(--mint); }

.dark { color: #fff; background: var(--ink); }
.home-hero {
  min-height: 0;
  position: relative;
  background: var(--ink);
  box-shadow: inset 0 3px 0 var(--mint);
}
.home-hero .site-header,
.home-hero.site-header { background: transparent; border-bottom: 0; position: relative; }
header.dark.hero.home-hero { max-width: none; margin: 0; position: relative; }
.home-hero .wrap > nav,
.home-hero .site-nav {
  padding: 10px 0 8px;
  border-bottom: 1px solid rgba(47, 214, 176, 0.22);
}
.hero-grid {
  position: relative;
  z-index: 1;
  padding: 16px 0 36px;
  width: 100%;
}
.hero-frame {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.hero-downloader-frame {
  display: block;
  width: 100%;
  min-height: 420px;
  height: 480px;
  border: 0;
  background: transparent;
}
.home-hero h1 {
  margin: 12px 0 16px;
  max-width: 770px;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
}
.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin-top: 72px;
  color: #94a3b8;
  font-size: 0.84rem;
}
.proof span::before { content: "✓"; color: var(--mint); padding-right: 8px; }

.page-section { padding: 56px 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 28px;
  align-items: end;
}
.section-head h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 8px 0 0;
}
.section-head p { color: var(--muted); margin: 0; max-width: 520px; }

.home-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  background: transparent;
  border: 0;
}
.home-card {
  padding: 22px;
  min-height: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.home-card:last-child { border-right: 1px solid var(--line); }
.number {
  color: var(--mint-deep);
  font: 500 0.72rem var(--mono);
  letter-spacing: 0.14em;
}
.home-card h3 { font-size: 1.12rem; margin: 14px 0 8px; letter-spacing: -0.02em; }
.home-card p { color: var(--muted); font-size: 0.98rem; margin: 0; }

.process,
.guide,
.desktop-promo { background: var(--paper-deep); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.step { border-top: 3px solid var(--ink); padding-top: 18px; }
.step b { display: block; font: 500 0.74rem var(--mono); color: var(--mint-deep); letter-spacing: 0.12em; }
.step h3 { margin: 12px 0 8px; }
.step p { color: var(--muted); margin: 0; font-size: 0.92rem; }

.work {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: var(--ink);
  color: #fff;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: none;
}
.work-copy { padding: 32px; }
.work-copy p { color: #cbd5e1; max-width: 480px; }
.work-panel {
  min-height: 180px;
  background: var(--ink-soft);
  padding: 24px;
  display: flex;
  align-items: end;
}
.terminal {
  width: 100%;
  background: #07111d;
  border: 1px solid rgba(47, 214, 176, 0.35);
  border-radius: 2px;
  padding: 22px;
  font: 400 0.86rem/1.85 var(--mono);
  color: #d5e1f5;
}
.terminal em { color: var(--mint); font-style: normal; }
.cta { text-align: left; }
.cta p { color: var(--muted); margin: 16px 0 28px; max-width: 560px; }
.media-showcase { background: transparent; }
.shot { margin: 0; padding: 12px; }
.shot img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: top;
  border-radius: 0;
  border: 1px solid var(--ink);
}
.shot figcaption { padding: 12px 2px 2px; font-size: 0.85rem; font-weight: 700; }
.plan .price {
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 8px 0;
}
.plan p, .plan li { color: var(--muted); font-size: 0.95rem; }
.plan ul { padding-left: 18px; }
.plan.featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: none;
}
.plan.featured p,
.plan.featured li { color: #cbd5e1; }
.plan.featured .eyebrow { color: var(--mint); }

.app-body { background: var(--paper); }
.app-body h1 { margin-top: 8px; }
.auth-shell {
  width: min(440px, calc(100% - 32px));
  margin: 56px auto 88px;
}
.auth-shell .card {
  padding: 28px 24px;
  border-left: 4px solid var(--mint);
}
.app-main { padding: 36px 0 88px; }
.app-main > .card,
.app-main > .grid { margin: 20px 0; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.stat {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--mint-deep);
  letter-spacing: -0.03em;
}
.app-body input,
.app-body select,
.app-body textarea,
.box input,
.box select {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink-soft);
  margin: 6px 0 16px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.app-body label,
.box label { font-weight: 700; font-size: 0.86rem; letter-spacing: 0.04em; }
.app-body button { width: auto; min-width: 160px; margin: 6px 0 0; }
.error,
.app-body .error { color: var(--danger); }
[role="status"] { color: var(--success); font-weight: 700; }
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.pagination a,
.pagination .current {
  display: inline-block;
  padding: 7px 11px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pagination .current {
  background: var(--mint);
  color: var(--mint-ink);
  font-weight: 700;
  border-color: var(--mint);
}
.empty-state {
  padding: 18px;
  color: var(--muted);
  background: rgba(12, 21, 38, 0.04);
}

.dl-body { background: transparent; color: var(--ink); }
.dl-body .intro { text-align: left; max-width: 760px; margin: 0 auto 28px; }
.dl-body .intro p { color: var(--muted); }
.box { padding: 18px; }
.dl-form {
  display: grid;
  grid-template-columns: 1fr 130px 130px auto;
  gap: 8px;
  align-items: start;
}
.dl-form .checks { grid-column: 1 / -1; }
.dl-form input,
.dl-form select,
.dl-form button {
  margin: 0;
  width: 100%;
  min-height: 40px;
  border-radius: var(--radius-sm);
}
.checks {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  color: var(--muted);
  margin: 16px 0 0;
  font-size: 0.9rem;
  font-weight: 500;
}
.checks label { display: flex; gap: 8px; align-items: center; }
.checks input { width: auto; padding: 0; margin: 0; min-height: 0; }
.limits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.limit { padding: 16px; }
.limit strong { display: block; color: var(--mint-deep); font-family: var(--display); font-size: 1.1rem; }
.message {
  margin: 0 0 18px;
  padding: 16px;
  border-radius: 0;
  border-left: 3px solid currentColor;
}
.message.success { background: var(--success-bg); border-color: var(--success); color: var(--success); }
.message.error { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
[hidden] { display: none !important; }
.next-download {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--mint-deep);
  border-radius: var(--radius-sm);
  color: var(--mint-deep);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 12px 16px;
}
.next-download:hover { background: #edfbf7; }
.progress-panel {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #f8f6f1;
}
.progress-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}
.progress-heading output { color: var(--mint-deep); font-family: var(--display); font-size: 1.1rem; }
.progress-track {
  height: 8px;
  margin: 12px 0;
  background: #dce4ef;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: var(--mint);
  transition: width 0.35s ease;
}
.progress-stage { margin: 0; color: var(--muted); font-size: 0.92rem; }
button:disabled { opacity: 0.65; cursor: wait; }
.support { margin: 24px auto 0; text-align: center; }
.support-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.paypal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: #0070ba;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.paypal-button:hover { background: #005ea6; color: #fff; }
.support p { margin: 12px 0 0; color: var(--muted); font-size: 0.95rem; }

.embedded {
  background: transparent;
  min-height: 0;
  color: #fff;
}
.embedded header,
.embedded .site-header { display: none; }
.embedded main { padding: 0 0 8px; }
.embedded .wrap { width: min(980px, 100%); }
.embedded .intro h1 {
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}
.embedded .intro p { color: #d7e3f4; font-size: 0.9rem; max-width: 46em; }
.embedded .page-main { padding: 8px 0 4px; }
.embedded .box {
  background: var(--surface);
  color: var(--ink);
}
.embedded .limit { background: #f3f1eb; }
.embedded .support p { color: #c9d6e8; }

pre.log {
  white-space: pre-wrap;
  word-break: break-word;
  background: #0c1526;
  color: #d7e4f7;
  padding: 14px;
  border-radius: 2px;
}

@media (max-width: 1180px) {
  .nav-toggle-label { display: flex !important; align-items: center; justify-content: center; flex-shrink: 0; }
  .links,
  .navlinks {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #0c1526;
    padding: 10px 16px 16px;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 2px;
    border-top: 1px solid rgba(47, 214, 176, 0.28);
  }
  .links a,
  .navlinks a { padding: 8px 6px; }
  .nav-toggle:checked ~ .links,
  .nav-toggle:checked ~ .navlinks { display: flex; }
  .site-nav,
  nav.site-nav { position: relative; }
  .brand span { display: none; }
}

@media (max-width: 900px) {
  .cards,
  .plans,
  .gallery,
  .home-cards,
  .steps,
  .limits { grid-template-columns: 1fr; }
  .guide-grid,
  .section-head,
  .work,
  .facts { grid-template-columns: 1fr; }
  .home-card { min-height: 0; }
  .dl-form { grid-template-columns: 1fr 1fr; }
  .dl-form input[name="url"] { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .wrap { width: min(100% - 24px, 1120px); }
  .page-section { padding: 40px 0; }
  .work-copy { padding: 24px 18px; }
  .hero-grid { padding: 12px 0 28px; }
  .dl-form { grid-template-columns: 1fr; }
  .next-download { grid-column: 1; }
  footer .wrap,
  .site-footer .wrap { flex-direction: column; }
  .shot img { height: auto; }
  .fact:nth-child(odd) { border-right: 0; }
  h1, .hero h1, .page-hero h1 { font-size: 1.45rem; }
}
