/* MyAgents product page. Builds on /assets/site/site.css tokens. */

.ma-main {
  position: relative;
  padding-top: var(--header-h);
  overflow-x: clip;
}

/* ============================================================== HERO
   Static by default (no JS, reduced motion): title, copy, the computer + phone
   composition, the provider row and the end line, stacked.
   html.ma-anim (set by myagents.js) turns it into the sticky scroll-scrubbed version. */
.ma-hero {
  position: relative;
}

.ma-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10vh;
  width: min(1500px, 150vw);
  height: 110vh;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(229, 169, 60, 0.13), rgba(229, 169, 60, 0.04) 48%, rgba(5, 5, 7, 0) 72%);
  pointer-events: none;
}

.ma-crumb {
  position: absolute;
  z-index: 5;
  top: 18px;
  left: var(--gutter);
  font-size: 13px;
}

.ma-crumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.ma-crumb a::before {
  content: "← ";
}

.ma-crumb a:hover {
  color: var(--text-ivory);
}

.ma-crumb a:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.ma-hero-sticky {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 44px;
  padding: clamp(84px, 13vh, 150px) var(--gutter) clamp(56px, 9vh, 96px);
  text-align: center;
}

.ma-hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 10vw, 9rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.ma-headline {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2.5rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-ivory);
  text-wrap: balance;
}

.ma-hero-copy .lede {
  margin: 18px auto 0;
  max-width: 600px;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.55;
  color: rgba(245, 243, 238, 0.7);
  text-wrap: pretty;
}

.ma-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.ma-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px 9px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(16, 18, 24, 0.7);
  color: var(--text-ivory);
  font-size: 14px;
  font-weight: 500;
}

.ma-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.ma-benefit-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-amber-soft);
}

.ma-benefit-icon svg,
.ma-dev-icon svg,
.ma-demo-tab svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--accent-amber);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ma-stage {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.ma-act,
.ma-continued,
.ma-tiles {
  display: none;
}

/* the computer: two sessions already running there */
.ma-computer {
  width: min(440px, calc(100vw - 2 * var(--gutter)));
  border-radius: 14px;
  background: linear-gradient(180deg, #15161c, #0c0d11);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  text-align: left;
  overflow: hidden;
}

.ma-computer-bar,
.ma-term-bar,
.ma-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  font-size: 12px;
}

.ma-computer-bar i,
.ma-term-bar i,
.ma-browser-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.ma-computer-bar span,
.ma-term-bar span {
  margin-left: 8px;
}

.ma-computer-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.ma-dsess {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--edge);
}

.ma-dsess-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.ma-dsess-text b {
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ma-dsess-text small {
  color: var(--text-secondary);
  font-size: 12.5px;
}

.ma-live {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--wash);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

.ma-phone {
  --ph: min(70vh, 680px);
  position: relative;
  height: var(--ph);
  aspect-ratio: 390 / 844;
  padding: calc(var(--ph) * 0.016);
  border-radius: calc(var(--ph) * 0.075);
  background: linear-gradient(150deg, #2a2b31, #0d0e12 38%, #18191e 70%, #050507);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 0 3px #050507,
    0 50px 120px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  box-sizing: content-box;
}

.ma-screen {
  position: relative;
  height: 100%;
  border-radius: calc(var(--ph) * 0.06);
  overflow: hidden;
  background: #07080b;
}

.ma-screen img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.ma-screen-b {
  opacity: 0;
}

.ma-chiplights {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ma-chip-light {
  position: absolute;
  border-radius: 999px;
  box-shadow: 0 0 0 1.5px var(--ink), 0 0 18px var(--ink);
  opacity: 0;
}

.ma-chip-light.is-row {
  border-radius: 12px;
}

.ma-provider-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* one provider pill: MyAgents' badge + the provider's name */
.ma-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 7px;
  border-radius: 14px;
  background: rgba(16, 18, 24, 0.82);
  border: 1px solid var(--edge);
  color: var(--text-ivory);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}

.ma-badge {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--wash);
  border: 1px solid var(--edge);
  color: var(--ink);
}

.ma-badge svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ma-hero-end {
  max-width: 560px;
}

.ma-end-line {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.ma-end-note {
  margin: 18px 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(245, 243, 238, 0.66);
}

/* ---------------------------------------------------- animated hero (JS + motion OK) */
.ma-anim .ma-hero {
  height: 520vh;
}

.ma-anim .ma-hero-sticky {
  position: sticky;
  top: 0;
  display: block;
  height: 100vh;
  height: 100svh;
  padding: 0;
  overflow: hidden;
}

.ma-anim .ma-stage {
  position: absolute;
  inset: 0;
  display: block;
}

.ma-anim .ma-hero-copy,
.ma-anim .ma-hero-end,
.ma-anim .ma-phone,
.ma-anim .ma-computer,
.ma-anim .ma-tile,
.ma-anim .ma-fly,
.ma-anim .ma-act,
.ma-anim .ma-continued {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform, opacity;
}

.ma-anim .ma-hero-copy {
  z-index: 4;
  width: min(1040px, calc(100vw - 2 * var(--gutter)));
}

.ma-anim .ma-phone {
  z-index: 1;
}

.ma-anim .ma-computer {
  z-index: 1;
  opacity: 0;
}

.ma-anim .ma-tiles {
  display: block;
}

/* providers and sessions pass in front of the phone as they dock */
.ma-anim .ma-tile,
.ma-anim .ma-fly {
  z-index: 3;
  transform-origin: 0 0;
}

.ma-anim .ma-tile {
  background: rgba(16, 18, 24, 0.94);
}

.ma-anim .ma-act {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  margin: 0;
  color: var(--text-ivory);
  font-size: clamp(13px, 1.3vw, 16px);
  white-space: nowrap;
  opacity: 0;
}

.ma-act em {
  font-style: normal;
}

.ma-act strong {
  color: #f1d29a;
  font-weight: 600;
}

.ma-act span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(229, 169, 60, 0.5);
  color: #f1d29a;
  font-size: 12px;
  font-weight: 600;
}

.ma-anim .ma-continued {
  display: block;
  z-index: 3;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(16, 18, 24, 0.94);
  border: 1px solid rgba(229, 169, 60, 0.45);
  color: #f1d29a;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
}

.ma-anim .ma-provider-row {
  display: none;
}

.ma-anim .ma-hero-end {
  z-index: 2;
  width: min(560px, calc(100vw - 2 * var(--gutter)));
  opacity: 0;
}

.ma-anim .ma-end-line {
  font-size: clamp(1.9rem, 3.4vw, 3.3rem);
}

.ma-anim .ma-crumb {
  position: absolute;
}

/* ================================================================ STATUS STRIP */
.ma-status-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  padding: 18px var(--gutter);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
}

.ma-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 10px var(--accent-amber);
}

/* ================================================================ SHARED */
.ma-feature,
.ma-try,
.ma-more {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(96px, 15vh, 160px) var(--gutter);
}

.ma-kicker {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-amber);
}

.ma-feature h2,
.ma-try h2,
.ma-more h2,
.ma-providers h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.8vw, 4.3rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.ma-copy p {
  margin: 22px 0 0;
  max-width: 500px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(245, 243, 238, 0.72);
}

.ma-copy-center {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.ma-copy-center p {
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
}

.ma-fine {
  margin: 18px 0 0;
  font-size: 14px !important;
  line-height: 1.55;
  color: var(--text-secondary) !important;
}

.ma-fine-center {
  max-width: 680px;
  margin: 36px auto 0;
  text-align: center;
}

/* phone screenshot in a slim device frame */
.ma-device {
  --dh: min(70vh, 660px);
  position: relative;
  margin: 0;
  height: var(--dh);
  aspect-ratio: 390 / 844;
  padding: calc(var(--dh) * 0.014);
  border-radius: calc(var(--dh) * 0.072);
  background: linear-gradient(150deg, #26272d, #0c0d11 40%, #16171c 72%, #050507);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11), 0 40px 100px rgba(0, 0, 0, 0.7);
  box-sizing: content-box;
}

.ma-device > img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--dh) * 0.058);
  object-fit: cover;
  object-position: top;
  background: #07080b;
}

.ma-device figcaption {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 18px);
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
}

.ma-device-sm {
  --dh: min(58vh, 520px);
}

.ma-device-xs {
  --dh: min(44vh, 380px);
}

/* G2 display capture: green light on black, in a lens-like frame */
.ma-hud {
  margin: 0;
}

.ma-hud img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  border-radius: 16px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(110, 255, 140, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.07), 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(40, 255, 90, 0.05);
}

/* ================================================================ 1. CONTINUE */
.ma-flow {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  align-items: start;
  gap: clamp(24px, 3.5vw, 56px);
  margin: clamp(56px, 9vh, 96px) 0 0;
  padding: 0;
  list-style: none;
}

.ma-flow-step {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.ma-flow-n {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ma-flow-n span,
.ma-step-n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(229, 169, 60, 0.5);
  color: #f1d29a;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
}

.ma-flow-cap {
  max-width: 300px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.5;
}

.ma-term {
  width: 100%;
  margin: 0;
  border-radius: 14px;
  background: #0a0b0e;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  text-align: left;
  overflow: hidden;
}

.ma-term-body {
  display: grid;
  gap: 10px;
  padding: 16px 18px 18px;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
}

.ma-term-body p {
  margin: 0;
}

.ma-term-body .u {
  color: #f5f3ee;
}

.ma-term-body .a {
  position: relative;
  padding-left: 16px;
  color: rgba(245, 243, 238, 0.68);
}

.ma-term-body .a::before {
  content: "●";
  position: absolute;
  left: 0;
  color: #fb923c;
  font-size: 9px;
  line-height: 19px;
}

.ma-term-body .c {
  color: #fb923c;
  animation: ma-blink 1.1s steps(2) infinite;
}

@keyframes ma-blink {
  50% {
    opacity: 0;
  }
}

.ma-term figcaption {
  padding: 10px 18px;
  border-top: 1px solid var(--border-hairline);
  color: var(--text-muted);
  font-size: 12px;
}

.ma-hud-under {
  width: min(100%, 330px);
  margin-top: -6px;
}

.ma-needs {
  max-width: 860px;
  margin: clamp(56px, 9vh, 90px) auto 0;
  padding: 26px 30px;
  border-radius: 20px;
  border: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, 0.02);
}

.ma-needs-title {
  margin: 0 0 12px;
  color: var(--accent-amber);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ma-needs ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 0 0 18px;
  color: rgba(245, 243, 238, 0.8);
  line-height: 1.5;
}

/* ================================================================ 2. CREATE */
.ma-create-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.ma-points {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.ma-points li {
  position: relative;
  padding-left: 22px;
  color: rgba(245, 243, 238, 0.74);
  line-height: 1.5;
}

.ma-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-amber);
}

.ma-points b {
  color: var(--text-ivory);
  font-weight: 600;
}

.ma-create-shots {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 40px);
  padding-bottom: 48px;
}

.ma-create-shots .ma-device:nth-child(2) {
  margin-top: 64px;
}

.ma-vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 860px;
  margin: clamp(56px, 9vh, 90px) auto 0;
  border-radius: 20px;
  border: 1px solid var(--border-hairline);
  overflow: hidden;
}

.ma-vs > div {
  padding: 24px 28px;
}

.ma-vs > div + div {
  border-left: 1px solid var(--border-hairline);
  background: rgba(229, 169, 60, 0.04);
}

.ma-vs p {
  margin: 0;
  color: rgba(245, 243, 238, 0.76);
  line-height: 1.5;
}

.ma-vs .ma-vs-k {
  margin-bottom: 8px;
  color: var(--text-ivory);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.ma-vs strong {
  color: var(--text-ivory);
}

/* ================================================================ 3. DEVICES */
.ma-device-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: clamp(56px, 9vh, 90px) 0 0;
  padding: 0;
  list-style: none;
}

.ma-dev {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  padding: 18px 18px 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--border-hairline);
}

.ma-dev-media {
  display: grid;
  place-items: center;
  height: 260px;
  margin: 0;
  border-radius: 16px;
  background: #07080b;
  overflow: hidden;
}

.ma-dev-media img {
  height: auto;
}

.ma-dev-g2 img {
  width: 92%;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(110, 255, 140, 0.12), 0 0 40px rgba(40, 255, 90, 0.06);
}

.ma-dev-phone {
  align-items: start;
  padding-top: 18px;
}

.ma-dev-phone img {
  width: 58%;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 0 0 6px #17181d, 0 0 0 7px rgba(255, 255, 255, 0.1);
}

.ma-browser {
  width: 92%;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: #0c0d11;
  overflow: hidden;
}

.ma-browser-bar {
  padding: 7px 9px;
}

.ma-browser-bar i {
  width: 7px;
  height: 7px;
}

.ma-browser img {
  display: block;
  width: 100%;
}

.ma-dev-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ma-dev-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ma-dev-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent-amber-soft);
}

.ma-tag {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.ma-tag.is-live {
  border-color: rgba(229, 169, 60, 0.45);
  color: #f1d29a;
}

.ma-dev > p {
  margin: 0;
  color: rgba(245, 243, 238, 0.7);
  font-size: 15px;
  line-height: 1.55;
}

/* ================================================================ 4. TRY IT */
.ma-try {
  max-width: 1320px;
}

.ma-demo {
  margin-top: clamp(40px, 7vh, 72px);
}

.ma-demo-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  margin: 0 auto 36px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(16, 18, 24, 0.8);
}

.ma-demo-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font: 500 15px var(--font-sans);
  cursor: pointer;
}

.ma-demo-tab[aria-selected="true"] {
  background: var(--text-ivory);
  color: #0b0c10;
}

.ma-demo-tab[aria-selected="true"] svg {
  stroke: #0b0c10;
}

.ma-demo-tab:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 2px;
}

.ma-demo-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 380px);
  justify-content: center;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.ma-demo-panel[hidden] {
  display: none;
}

.ma-demo-stage {
  display: grid;
  place-items: center;
}

/* the phone demo: a 390x844 app frame, scaled to fit */
.ma-demo-phone {
  --ph: min(78vh, 760px);
  --s: calc(var(--ph) / 844px);
  position: relative;
  width: calc(var(--ph) * 390 / 844);
  height: var(--ph);
  padding: calc(var(--ph) * 0.016);
  border-radius: calc(var(--ph) * 0.075);
  background: linear-gradient(150deg, #2a2b31, #0d0e12 38%, #18191e 70%, #050507);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 0 0 3px #050507, 0 50px 120px rgba(0, 0, 0, 0.75);
  box-sizing: content-box;
}

.ma-demo-phone .ma-demo-frame {
  position: absolute;
  left: calc(var(--ph) * 0.016);
  top: calc(var(--ph) * 0.016);
  width: 390px;
  height: 844px;
  border: 0;
  border-radius: 30px;
  background: #0b0c10;
  transform-origin: 0 0;
  transform: scale(var(--k, 1));
}

.ma-demo-g2 {
  position: relative;
  width: min(720px, calc(100vw - 2 * var(--gutter)));
  aspect-ratio: 720 / 470;
}

.ma-demo-g2 .ma-demo-frame {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 24px;
  background: #050507;
}

.ma-demo-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  margin: calc(var(--ph, 0px) * 0.016);
  border: 0;
  border-radius: 30px;
  background: radial-gradient(closest-side, rgba(229, 169, 60, 0.16), rgba(10, 11, 14, 0.96));
  color: var(--text-ivory);
  font: 600 16px var(--font-sans);
  cursor: pointer;
}

.ma-demo-start:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: -4px;
}

.ma-demo-start[hidden] {
  display: none;
}

.ma-demo-guide h3 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ma-demo-guide ol {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: rgba(245, 243, 238, 0.76);
  font-size: 15px;
  line-height: 1.5;
}

.ma-demo-guide b {
  color: var(--text-ivory);
}

.ma-demo-badge {
  display: inline-block;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(229, 169, 60, 0.45);
  color: #f1d29a;
  font-size: 12px;
  font-weight: 600;
}

.ma-demo-note {
  margin: 20px 0 0;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.55;
}

.ma-demo-reset {
  margin-top: 20px;
}

.ma-gestures {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.ma-gestures li {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: baseline;
  gap: 10px;
  color: rgba(245, 243, 238, 0.76);
  font-size: 14.5px;
}

.ma-gestures kbd {
  padding: 3px 8px;
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-ivory);
  font: 500 13px var(--font-sans);
  text-align: center;
}

.ma-keys {
  color: var(--text-muted);
  font-size: 12.5px;
}

/* ================================================================ MORE */
.ma-more-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(48px, 8vh, 80px);
}

.ma-mini {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--border-hairline);
}

.ma-mini h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ma-mini p {
  margin: 10px 0 0;
  color: rgba(245, 243, 238, 0.7);
  font-size: 15px;
  line-height: 1.55;
}

.ma-hud-inline {
  margin-top: 16px;
}

.ma-hud-inline img {
  border-radius: 10px;
}

.ma-lifecycle {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.ma-lifecycle li {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-hairline);
  font-size: 13.5px;
  font-weight: 500;
}

.ma-lifecycle li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -13px;
  color: var(--text-muted);
  font-size: 11px;
}

.ma-lifecycle .is-you {
  border-color: rgba(229, 169, 60, 0.45);
  color: #f1d29a;
}

.ma-lifecycle .is-you span {
  font-size: 11.5px;
  font-weight: 400;
  color: rgba(241, 210, 154, 0.7);
}

/* ================================================================ PROVIDERS */
.ma-providers {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(80px, 13vh, 140px) var(--gutter) clamp(64px, 10vh, 110px);
}

.ma-prov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: clamp(48px, 8vh, 80px) 0 0;
  padding: 0;
  list-style: none;
}

.ma-prov {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 14px;
  row-gap: 8px;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--border-hairline);
}

.ma-prov .ma-badge {
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.ma-prov .ma-badge svg {
  width: 24px;
  height: 24px;
}

.ma-prov-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ma-prov-tag {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.ma-prov-tag.is-limited {
  border-color: rgba(229, 169, 60, 0.4);
  color: #f1d29a;
}

.ma-prov p {
  grid-column: 2;
  margin: 0;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.5;
}

.ma-shots-note {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

/* final */
.ma-final {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(110px, 18vh, 200px) var(--gutter) clamp(110px, 18vh, 180px);
  text-align: center;
}

.ma-final::before {
  content: "";
  position: absolute;
  inset: 10% -20% 0;
  background: radial-gradient(closest-side, rgba(229, 169, 60, 0.12), rgba(5, 5, 7, 0) 70%);
  pointer-events: none;
}

.ma-final h2 {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.ma-final p {
  position: relative;
  margin: 24px auto 0;
  max-width: 520px;
  color: rgba(245, 243, 238, 0.7);
  font-size: 1.08rem;
  line-height: 1.6;
}

.ma-final-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

/* ================================================================ RESPONSIVE */
@media (max-width: 1080px) {
  .ma-flow {
    grid-template-columns: 1fr 1fr;
  }

  .ma-flow-step:first-child {
    grid-column: 1 / -1;
    max-width: 560px;
    justify-self: center;
  }

  .ma-more-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .ma-create-grid,
  .ma-demo-panel {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .ma-demo-guide {
    max-width: 520px;
  }

  .ma-device-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .ma-device {
    --dh: min(64vh, 600px);
  }

  .ma-device-sm {
    --dh: min(58vh, 520px);
  }
}

@media (max-width: 640px) {
  .ma-flow {
    grid-template-columns: 1fr;
  }

  .ma-vs {
    grid-template-columns: 1fr;
  }

  .ma-vs > div + div {
    border-left: 0;
    border-top: 1px solid var(--border-hairline);
  }

  .ma-create-shots .ma-device {
    --dh: min(52vh, 400px);
  }

  .ma-create-shots .ma-device:nth-child(2) {
    display: none;
  }

  .ma-mini {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .ma-mini .ma-lifecycle {
    justify-content: center;
  }

  .ma-demo-tab {
    padding: 0 12px;
    font-size: 14px;
  }

  .ma-demo-phone {
    --ph: min(72vh, 640px, calc((100vw - 40px) * 844 / 390));
  }

  .ma-benefits li {
    font-size: 13px;
  }

  .ma-needs {
    padding: 22px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ma-term-body .c {
    animation: none;
  }
}
