/* MajesticTab website. Tokens are the app's Slate Blue finish (src/style.css, src/design.css).
   Flat: tone steps instead of lines, no gradients, no shadows, one accent for the action, one for the playhead. */
@font-face { font-family: 'Barlow Condensed'; font-weight: 500; font-display: swap; src: url('fonts/barlow-condensed-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }

:root {
  --ground: #1e2636;
  --s1: #111724;
  --s2: #212d44;
  --s3: #2f4066;
  --ink: #f4f7fc;
  --ink2: #a9b8d2;
  --action: #8db4f2;
  --action-hover: #a5c5f7;
  --on-action: #0a0e17;
  --hue: #f0a850;
  --font-display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-text: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --r: 6px;
  --w: 1120px;
  --m: 24px;
  --pad: 88px;
  --dur-fast: 150ms; --dur-base: 250ms; --dur-slower: 400ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 var(--font-text); -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--action); color: var(--on-action); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -80px; z-index: 100; background: var(--action); color: var(--on-action); padding: 12px 16px; border-radius: var(--r); font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { max-width: calc(var(--w) + var(--m) * 2); margin-inline: auto; padding-inline: var(--m); }
.sec { padding-block: var(--pad); }
.band { background: var(--s1); }
.band2 { background: var(--s2); }

/* Type: display 56, heading 36, subheading 20, body 17, small 15 */
h1 { font: 600 56px/1.04 var(--font-display); letter-spacing: -0.005em; }
h2 { font: 600 36px/1.1 var(--font-display); letter-spacing: 0; }
h3 { font: 600 20px/1.3 var(--font-text); }
.lead { font-size: 20px; line-height: 1.5; }
.muted { color: var(--ink2); }
.small { font-size: 15px; }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: var(--r); background: var(--action); color: var(--on-action); font: 600 17px/1 var(--font-text); transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.btn:hover { background: var(--action-hover); }
.btn:active { transform: translateY(1px); }
.text-link { color: var(--ink2); border-radius: var(--r); padding: 4px 0; transition: color var(--dur-fast) var(--ease-out); }
.text-link:hover { color: var(--ink); }
.dot { color: var(--ink2); padding-inline: .35em; }

/* Header */
.top { background: var(--ground); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 600 24px/1 var(--font-display); letter-spacing: 0.01em; }
.brand b { font-weight: inherit; color: var(--action); }
.brand .tile { width: 36px; height: 36px; padding: 4px; background: var(--ink); border-radius: var(--r); }
.brand .tile img { width: 100%; height: 100%; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 15px; color: var(--ink2); border-radius: var(--r); transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.nav a:hover { color: var(--ink); background: var(--s2); }
.nav a.btn { min-height: 44px; padding: 0 20px; font-size: 15px; margin-left: 8px; color: var(--on-action); background: var(--action); }
.nav a.btn:hover { background: var(--action-hover); }

/* Hero */
.hero { padding-block: 40px 96px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 440px; column-gap: 72px; align-items: center; }
.hero h1 { max-width: none; line-height: 1.1; text-wrap: balance; }
.hero .lead { margin-top: 20px; max-width: 40ch; }
.hero .sub { margin-top: 12px; max-width: 46ch; }
.hero-act { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.hero-meta { margin-top: 24px; font-size: 15px; color: var(--ink2); }
.hero-media { display: flex; flex-direction: column; gap: 20px; }
/* The bezel is part of the video (the devices swipe left together), so the box has no frame; the video's ground matches the page */
.hero-video { background: var(--ground); overflow: hidden; }
.hero-video video { display: block; width: 100%; height: auto; aspect-ratio: 868 / 1148; object-fit: cover; }
/* The three tab types under the loop: the current one is bright and carries a line that fills as its part plays */
.hero-kinds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; }
.hero-kinds li { position: relative; font-size: 15px; color: var(--ink2); opacity: .55; transition: color var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out); }
.hero-kinds button { display: block; width: 100%; min-height: 44px; padding: 14px 0 0; text-align: left; font: inherit; color: inherit; background: none; border: 0; border-radius: var(--r); cursor: pointer; }
.hero-kinds li:hover { opacity: 1; color: var(--ink); }
.hero-kinds li::before, .hero-kinds li::after { content: ''; position: absolute; top: 0; left: 0; height: 2px; border-radius: 1px; }
.hero-kinds li::before { right: 0; background: var(--s2); }
.hero-kinds li::after { width: 100%; background: var(--action); transform: scaleX(var(--p, 0)); transform-origin: left; opacity: 0; transition: opacity var(--dur-base) var(--ease-out); }
.hero-kinds li.is-on { color: var(--ink); opacity: 1; }
.hero-kinds li.is-on::after { opacity: 1; }

/* Features */
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head p { margin-top: 12px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; }
.fgroup h3 { margin-bottom: 8px; }
.fgroup p { color: var(--ink2); }
.fgroup .names { margin-top: 14px; font-size: 15px; color: var(--ink); line-height: 1.7; }

/* Reader */
.reader { display: grid; grid-template-columns: 400px minmax(0, 1fr); column-gap: 56px; align-items: start; }
.reader h2 { grid-column: 1 / -1; margin-bottom: 40px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 2px; margin-left: -12px; }
.tab { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px 0 12px; font-size: 17px; color: var(--ink2); border-radius: var(--r); transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.tab:hover { color: var(--ink); background: var(--s2); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab::after { content: ''; position: absolute; top: 12px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--hue); opacity: 0; transform: scale(0.5); transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.tab[aria-selected="true"]::after { opacity: 1; transform: none; }
.panel { margin-top: 28px; }
.panel h3 { font: 600 24px/1.1 var(--font-display); }
.panel p { margin-top: 12px; color: var(--ink2); }
.panel[hidden] { display: none; }
.pfig picture, .pfig img { width: 100%; height: auto; border-radius: var(--r); }
.js .pfig { display: none; }
.js .pfig.is-on { display: block; animation: figin var(--dur-base) var(--ease-out); }
html:not(.js) .tabs { display: none; }
html:not(.js) .pfig:not(.is-on) { display: none; }
@keyframes figin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* How it works: text beside a picture, alternating sides */
.steps { display: grid; row-gap: 64px; }
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 56px; align-items: center; }
.step:nth-child(even) .step-text { order: 2; }
.step-text p { margin-top: 10px; color: var(--ink2); }
.step figure { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r); background: var(--s1); }
.step figure img { width: 100%; height: 100%; object-fit: cover; }

.step-text .names { margin-top: 14px; font-size: 15px; color: var(--ink); }
.step-text h2 { max-width: 16ch; }
.shot picture, .shot img { width: 100%; height: auto; }
.step figure.shot { aspect-ratio: 16 / 10; background: var(--s1); }
.step figure.shot img { height: 100%; object-fit: cover; object-position: top left; }
.band .step figure.shot { background: var(--s2); }
.feat-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }

/* Facts */
.facts-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 24px; }
.facts-row dt { font: 600 56px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.facts-row dd { margin-top: 8px; font-size: 15px; color: var(--ink2); max-width: 22ch; }

/* Pricing */
.price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 72px; align-items: start; }
.price h2 { font-size: 48px; line-height: 1.05; }
.price .lead { margin-top: 16px; max-width: 32ch; }
.price-list { display: grid; gap: 10px; color: var(--ink2); }
.price-act { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 72px; }
.qa h3 { margin-bottom: 8px; }
.qa p { color: var(--ink2); }
.qa p a, .fgroup p a, .sec-head p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Download */
.tip { position: relative; display: inline-block; margin-left: 6px; vertical-align: baseline; }
.tip-btn { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; font: italic 700 13px/1 var(--font-text); color: var(--ink2); background: none; border: 1px solid currentColor; border-radius: 50%; cursor: help; transition: color var(--dur-fast) var(--ease-out); }
.tip-btn:hover, .tip.is-open .tip-btn { color: var(--ink); }
.tip-body { position: absolute; z-index: 5; left: 50%; bottom: calc(100% + 10px); width: min(320px, calc(100vw - 2 * var(--m))); transform: translateX(-50%); padding: 12px 14px; font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--s3); border-radius: var(--r); box-shadow: 0 8px 24px rgb(0 0 0 / .4); opacity: 0; visibility: hidden; transition: opacity var(--dur-fast) var(--ease-out), visibility var(--dur-fast); }
.tip:hover .tip-body, .tip:focus-within .tip-body, .tip.is-open .tip-body { opacity: 1; visibility: visible; }
@media (max-width: 600px) { .tip-body { position: fixed; left: var(--m); right: var(--m); bottom: var(--m); width: auto; transform: none; } }
.dl-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 28px; }
.dl h3 { font-size: 17px; margin-bottom: 10px; }
.dl { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 15px; }
.dl > p, .dl .note { color: var(--ink2); }
.dl a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent); padding: 2px 0; transition: text-decoration-color var(--dur-fast) var(--ease-out); }
.dl a:hover { text-decoration-color: var(--ink); }
.dl .dl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.dl a.badge { text-decoration: none; padding: 0; margin-bottom: 4px; }
.dl a.badge svg { display: block; height: 40px; width: auto; }
.dl .copy { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; font: inherit; color: var(--ink2); background: none; border: 0; padding: 2px 0; cursor: pointer; text-align: left; }
.dl .copy span { min-width: 0; }
.dl .copy code { min-width: 0; user-select: none; }
.dl .copy .ico { flex-shrink: 0; }
.dl .copy:hover { color: var(--ink); }
.dl .copy .i-done, .dl .copy.done .i-copy { display: none; }
.dl .copy.done .i-done { display: inline; }
.dl .copy.done { color: var(--ink); }
.dl code { font: inherit; background: var(--s3); color: var(--ink); padding: 1px 6px; border-radius: 4px; max-width: 100%; overflow-wrap: anywhere; user-select: all; }

/* Footer */
.foot { padding-block: 40px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.foot .brand { font-size: 20px; }
.foot .brand .tile { width: 30px; height: 30px; padding: 3px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; }
.foot-links a { color: var(--ink2); padding: 4px 0; }
.foot-links a:hover { color: var(--ink); }
.legal { width: 100%; font-size: 15px; color: var(--ink2); }

/* Entrances: only when script runs, never hides content otherwise */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-slower) var(--ease-out) calc(var(--d, 0) * 70ms), transform var(--dur-slower) var(--ease-out) calc(var(--d, 0) * 70ms); }
.js .rv.in { opacity: 1; transform: none; }

/* Tablet and phone */
@media (max-width: 1023px) {
  :root { --pad: 72px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) 360px; column-gap: 40px; }
  h1 { font-size: 48px; }
  .hero h1 { font-size: 42px; }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reader { grid-template-columns: 320px minmax(0, 1fr); column-gap: 32px; }
  .facts-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .price { column-gap: 40px; }
}
@media (max-width: 859px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .hero-media { max-width: 420px; }
}
@media (max-width: 767px) {
  :root { --m: 16px; --pad: 56px; }
  .nav a:not(.btn) { display: none; }
  .nav a.btn { margin-left: 0; }
  .hero { padding-block: 16px 64px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  h1 { font-size: 48px; }
  .hero h1 { font-size: 34px; }
  .price h2 { font-size: 36px; }
  .hero-act .btn { width: 100%; min-height: 52px; }
  .hero-media { max-width: 420px; }
  .feat-grid { grid-template-columns: 1fr; gap: 36px; }
  .reader { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .reader h2 { margin-bottom: 24px; }
  .tabs { flex-wrap: nowrap; margin-left: -8px; }
  .tab { padding: 0 12px 0 8px; }
  .tab::after { top: 12px; right: 1px; }
  .pfig-wrap { order: 3; margin-top: 28px; }
  .pfig picture { display: block; aspect-ratio: 780 / 1318; overflow: hidden; border-radius: var(--r); }
  .pfig picture img { height: 100%; object-fit: cover; object-position: top center; border-radius: 0; }
  .step { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .step figure.shot { aspect-ratio: auto; max-width: 340px; margin-inline: auto; }
  .step figure.shot img { height: auto; }
  .feat-grid.four { grid-template-columns: 1fr; }
  .step:nth-child(even) .step-text { order: 0; }
  .steps { row-gap: 48px; }
  .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .price-act .btn { width: 100%; min-height: 52px; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (pointer: coarse) {
  .text-link, .foot-links a, .dl a, .dl .copy { min-height: 44px; display: inline-flex; align-items: center; }
}
/* picture viewer: a click on a screenshot opens it larger */
.js .shot img, .js .pfig img { cursor: zoom-in; }
.viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: hidden; }
.viewer::backdrop { background: rgb(8 11 18 / 0.86); }
.viewer[open] { animation: vin var(--dur-base) var(--ease-out); }
.viewer.is-closing { animation: vout var(--dur-fast) var(--ease-out) forwards; }
@keyframes vin { from { opacity: 0; } }
@keyframes vout { to { opacity: 0; } }
.viewer-stage { position: absolute; inset: 0; display: flex; overflow: auto; padding: 56px 16px 16px; overscroll-behavior: contain; }
.viewer-stage img { margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; cursor: zoom-in; border-radius: var(--r); background: var(--s1); }
.viewer-stage.is-zoom { cursor: grab; }
.viewer-stage.is-zoom img { max-width: none; max-height: none; cursor: zoom-out; }
.viewer-close { position: absolute; top: 8px; right: 8px; z-index: 1; min-width: 44px; min-height: 44px; padding: 0 16px; border-radius: var(--r); background: var(--s2); color: var(--ink); font-size: 15px; transition: background-color var(--dur-fast) var(--ease-out); }
.viewer-close:hover { background: var(--s3); }
@media (prefers-reduced-motion: reduce) {
  .viewer[open], .viewer.is-closing { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .btn, .tab, .nav a { transition: none; }
  .js .pfig.is-on { animation: none; }
}

/* Privacy policy */
.policy { padding-block: 56px var(--pad); }
.policy .wrap { max-width: calc(760px + var(--m) * 2); }
.policy h1 { font-size: 48px; margin-bottom: 8px; }
.policy .lead { margin-top: 24px; color: var(--ink2); }
.policy section { margin-top: 48px; }
.policy h2 { font-size: 30px; margin-bottom: 16px; }
.policy p, .policy li { color: var(--ink2); }
.policy p + p, .policy p + ul, .policy ul + p { margin-top: 16px; }
.policy ul { list-style: disc; padding-left: 22px; }
.policy li + li { margin-top: 10px; }
.policy li::marker { color: var(--s3); }
.policy strong { color: var(--ink); font-weight: 600; }
.policy a { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.policy a:hover { color: var(--action-hover); }
.policy code { font: 15px/1 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; background: var(--s2); color: var(--ink); padding: 2px 6px; border-radius: 4px; }
.policy .callout { background: var(--s2); border-radius: var(--r); padding: 20px 24px; margin-top: 20px; color: var(--ink); }
@media (max-width: 720px) { .policy { padding-block: 32px 64px; } .policy h1 { font-size: 40px; } .policy h2 { font-size: 26px; } }
