/* MM's homepage pricing: one comparison table (owner-approved, 2026-11-15). A copy of the MM section of the
   pricing lab (Vich Master/pricing-lab/index.html #mm, v3) with its rules scoped to .mmp, so the landing's own
   styles and these never meet. Prices come from /api/v1/prices (pricing/prices.js); the table is drawn by
   pricing/mm-plans.js. The homepage only shows the plans: every button opens account creation, and buying stays
   in the studio's plan window. */
@property --beam { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

.mmp {
  --bg: #0A0C11;
  --card: #0F121A;
  --card-2: #141824;
  --line: #1D2230;
  --line-2: #2B3244;
  --text: #FFFFFF;
  --soft: #C9CED8;
  --muted: #8E95A5;
  --off: #4F576B;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --hue: #FF7EB3; --hue-rgb: 255, 126, 179; --on-hue: #160810;
  color-scheme: dark;
  position: relative; overflow: clip; padding: 64px 32px 140px; isolation: isolate;
  /* no ground of its own: the landing's field runs through, so neither edge shows a seam (owner, 2026-11-15) */
  background: transparent; color: var(--text); font: 400 16px/1.55 "Archivo", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
.mmp *, .mmp *::before, .mmp *::after { box-sizing: border-box; }
.mmp h2, .mmp h3, .mmp p, .mmp ul { margin: 0; }
.mmp button { font: inherit; color: inherit; }
.mmp a { color: inherit; }
.mmp .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mmp :focus-visible { outline: 2px solid var(--hue, #fff); outline-offset: 3px; }
.mmp .defs { position: absolute; width: 0; height: 0; }

/* ---------------- section ---------------- */
/* The pink light sits round the heading and fades in from nothing and back out, so it never starts at the section's edge */
.mmp::before { content: ""; position: absolute; inset: 0 0 auto; height: 800px; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 24%, rgba(var(--hue-rgb), .13), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 25%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 25%, #000 70%, transparent 100%); }
.mmp .pr-in { max-width: 1200px; margin: 0 auto; }
.mmp .pr-head { text-align: center; max-width: 760px; margin: 0 auto; }
.mmp .pr-head h2 { font-size: clamp(40px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; text-wrap: balance; }
.mmp .pr-head p { margin: 16px auto 0; max-width: 600px; font-size: 18px; color: var(--soft); text-wrap: pretty; }
.mmp .pr-status { margin: 24px auto 0; text-align: center; font-size: 15px; color: var(--soft); }
.mmp .pr-status[hidden] { display: none; }

/* billing switch: one pill, a sliding thumb, the saving on the yearly side */
.mmp .switch { position: relative; display: inline-flex; margin: 36px auto 0; padding: 4px; background: var(--card); border: 1px solid var(--line); }
.mmp .switch-wrap { display: flex; justify-content: center; }
.mmp .switch button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border: 0; background: none; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--muted); transition: color .3s var(--ease); white-space: nowrap; }
.mmp .switch button[aria-checked="true"] { color: var(--text); }
.mmp .switch button em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--hue); }
.mmp .switch .thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: transform .45s var(--ease), width .45s var(--ease); }

/* ---------------- plan cards ---------------- */
.mmp .card { position: relative; display: flex; flex-direction: column; padding: 32px; background: linear-gradient(180deg, #11141D 0%, #0C0F16 100%);
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); isolation: isolate; text-align: left; }
.mmp .card::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease);
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--hue-rgb), .09), transparent 65%); }
.mmp .card:hover::after { opacity: 1; }
.mmp .card.is-feat { border-color: rgba(var(--hue-rgb), .45); background: linear-gradient(180deg, #131826 0%, #0D1018 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 40px 120px -48px rgba(var(--hue-rgb), .45); }
/* Pro's frame (owner, 2026-11-15): Standard+'s border, travelling light and top highlight, in gold. Its own hue on this
   card only; no badge, no filled button, no column tint and no shadow glow (a big blur draws in hard steps in Chromium). */
.mmp .card.is-gold { --hue-rgb: 232, 196, 104; border-color: rgba(var(--hue-rgb), .45); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
/* the light that travels round the recommended plan, and round Pro in gold */
.mmp .beam::before { content: ""; position: absolute; inset: -1px; z-index: 2; pointer-events: none; padding: 1px;
  background: conic-gradient(from var(--beam), transparent 0deg 286deg, rgba(var(--hue-rgb), .0) 290deg, rgba(var(--hue-rgb), .9) 340deg, #fff 352deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: mmp-beam 7s linear infinite; }
@keyframes mmp-beam { to { --beam: 360deg; } }
.mmp .badge { position: absolute; top: -1px; right: 24px; transform: translateY(-50%); padding: 5px 10px; background: var(--hue); color: var(--on-hue);
  font-size: 12px; font-weight: 600; letter-spacing: .01em; }

.mmp .card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.55; color: var(--text); }
.mmp .card .tag { margin-top: 6px; color: var(--muted); font-size: 15px; min-height: 2.9em; }

.mmp .price { display: flex; align-items: baseline; gap: 10px; margin-top: 26px; min-height: 64px; }
.mmp .amt { display: inline-flex; font-size: 60px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.mmp .amt .d { display: inline-block; height: 1em; overflow: hidden; }
.mmp .amt .d > span { display: flex; flex-direction: column; transition: transform .7s var(--ease); transition-delay: calc(var(--n, 0) * 35ms); }
.mmp .amt .d > span > span { height: 1em; }
.mmp .amt .s { display: inline-block; }
.mmp .cur { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--soft); }
.mmp .per { font-size: 15px; color: var(--muted); }
.mmp .bill { margin-top: 10px; min-height: 1.55em; font-size: 14px; color: var(--muted); transition: opacity .25s var(--ease); }
.mmp .bill s { color: var(--muted); opacity: .75; text-decoration-thickness: 1px; margin-right: 8px; }
.mmp .bill b { color: var(--hue); font-weight: 600; }
.mmp .bill.fade { opacity: 0; }

.mmp .cta { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; margin-top: 24px; padding: 0 22px;
  font-size: 16px; font-weight: 600; text-decoration: none; color: var(--text); background: transparent; border: 1px solid var(--line-2);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease), filter .25s var(--ease); }
.mmp .cta svg { display: block; width: 16px; height: 16px; transition: transform .3s var(--ease); }
.mmp .cta:hover { background: var(--card-2); border-color: #3A4258; }
.mmp .cta:hover svg { transform: translateX(3px); }
.mmp .cta:active { transform: translateY(1px); }
.mmp .is-feat .cta { background: var(--hue); border-color: var(--hue); color: var(--on-hue); }
.mmp .is-feat .cta:hover { filter: brightness(1.08); background: var(--hue); }

/* ---------------- one comparison table, one screen ---------------- */
.mmp .cmp-wrap { position: relative; margin-top: 32px; }
.mmp .cmp { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.mmp .cmp col.f { width: 26%; }
.mmp .cmp th, .mmp .cmp td { text-align: left; font-weight: 400; vertical-align: middle; }
.mmp .cmp thead th { vertical-align: top; padding: 0 8px 0; }
.mmp .cmp thead th:first-child { padding-left: 0; vertical-align: bottom; }
.mmp .cmp thead .card { height: 100%; padding: 24px 22px 22px; }
.mmp .cmp thead .card .tag { min-height: 0; }
.mmp .cmp thead .price { margin-top: 16px; min-height: 52px; flex-wrap: wrap; row-gap: 4px; column-gap: 8px; }
.mmp .cmp thead .amt { font-size: 46px; }
.mmp .cmp thead th { height: 1px; }
.mmp .cmp thead .cta { margin-top: auto; height: 48px; }
.mmp .cmp thead .bill { margin-top: 8px; margin-bottom: 16px; }
.mmp .corner { padding-bottom: 21px; }
.mmp .corner .switch { margin: 0; }
.mmp .mob-only { display: none; }
.mmp .cmp tbody th, .mmp .cmp tbody td { padding: 11px 24px; font-size: 15px; line-height: 1.55; border-bottom: 1px solid var(--line); transition: background .2s var(--ease); }
.mmp .cmp tbody th { padding-left: 0; color: var(--soft); }
.mmp .cmp tbody th .fi { display: flex; align-items: center; gap: 12px; }
.mmp .cmp tbody th svg { display: block; width: 18px; height: 18px; color: var(--muted); flex: none; }
.mmp .cmp tbody td { color: var(--text); padding-left: 34px; }
.mmp .cmp td[data-c="2"] { background: rgba(var(--hue-rgb), .045); }
.mmp .cmp tbody tr:hover > * { background: rgba(255,255,255,.025); }
.mmp .cmp tbody tr:hover > td[data-c="2"] { background: rgba(var(--hue-rgb), .075); }
.mmp .cmp tbody tr:first-child > * { border-top: 1px solid var(--line-2); }
.mmp .yes { position: relative; display: inline-block; vertical-align: middle; width: 22px; height: 22px; border-radius: 50%; background: rgba(var(--hue-rgb), .2); }
.mmp .yes::after { content: ""; position: absolute; inset: 0; background: var(--hue); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.4 2.4 4.6-5' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='square'/%3E%3C/svg%3E") center / 12px 12px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.4 2.4 4.6-5' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='square'/%3E%3C/svg%3E") center / 12px 12px no-repeat; }
.mmp .no { position: relative; display: inline-block; vertical-align: middle; width: 14px; height: 14px; margin-left: 4px; }
.mmp .no::before, .mmp .no::after { content: ""; position: absolute; left: 6px; top: -1px; width: 2px; height: 16px; background: var(--off); transform: rotate(45deg); }
.mmp .no::after { transform: rotate(-45deg); }
.mmp .word-yes { font-weight: 600; }
.mmp .word-no { color: var(--muted); }
.mmp .picker, .mmp .mob-plans { display: none; }

/* ---------------- motion ---------------- */
@media (prefers-reduced-motion: no-preference) {
  .mmp.is-js .rise { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .mmp.is-js .rise.on { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mmp .beam::before { animation: none; background: rgba(var(--hue-rgb), .5); }
  .mmp .amt .d > span, .mmp .switch .thumb, .mmp .picker .thumb { transition: none; }
  .mmp .card::after { display: none; }
}

/* ---------------- tablet ---------------- */
@media (max-width: 1180px) {
  .mmp .cmp thead .per { flex-basis: 100%; }
}
@media (max-width: 1080px) {
  .mmp .cmp col.f { width: 24%; }
  .mmp .corner .switch { display: none; }
  .mmp .mob-only { display: flex; }
  .mmp .cmp-wrap { margin-top: 32px; }
  .mmp .cmp thead .card { padding: 22px 18px; }
  .mmp .cmp thead .amt { font-size: 40px; }
  .mmp .cmp tbody td { padding-left: 20px; }
}
/* ---------------- phone ---------------- */
@media (max-width: 760px) {
  .mmp { padding: 56px 16px 96px; }
  .mmp .pr-head h2 { font-size: 38px; }
  .mmp .pr-head p { font-size: 17px; }
  .mmp .switch button { padding: 0 14px; }
  .mmp .card { padding: 26px 22px; }
  .mmp .card .tag { min-height: 0; }
  .mmp .amt { font-size: 52px; }
  /* the table becomes: pick a plan, see its column. The picker holds under the landing's fixed header
     (--mmp-stick: the header's real height, measured by mm-plans.js). */
  .mmp .picker { position: sticky; top: var(--mmp-stick, var(--hdr-h, 0px)); z-index: 6; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; margin: 0 0 18px; background: rgba(10,12,17,.94); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .mmp .picker button { position: relative; z-index: 1; height: 42px; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 15px; font-weight: 600; transition: color .3s var(--ease); }
  .mmp .picker button[aria-checked="true"] { color: var(--text); }
  .mmp .picker .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .45s var(--ease); }
  .mmp .mob-plans { display: block; margin-bottom: 8px; }
  .mmp .mob-plans .card { display: none; }
  .mmp .mob-plans[data-sel="1"] [data-m="1"], .mmp .mob-plans[data-sel="2"] [data-m="2"], .mmp .mob-plans[data-sel="3"] [data-m="3"] { display: flex; }
  .mmp .mob-plans .badge { right: 18px; }
  .mmp .mob-plans .card { padding: 22px 20px; }
  .mmp .mob-plans .price { margin-top: 14px; min-height: 0; }
  .mmp .mob-plans .cta { margin-top: 16px; }
  .mmp .mob-plans .bill { margin-top: 6px; }
  .mmp .switch { margin-top: 24px; }
  .mmp .cmp-wrap { margin-top: 20px; }
  .mmp .cmp thead { display: none; }
  .mmp .cmp { table-layout: auto; }
  .mmp .cmp col, .mmp .cmp col.f { width: auto; }
  .mmp .cmp tbody th { width: 58%; }
  .mmp .cmp [data-c]:not([data-c="0"]) { display: none; }
  .mmp .cmp[data-sel="1"] [data-c="1"], .mmp .cmp[data-sel="2"] [data-c="2"], .mmp .cmp[data-sel="3"] [data-c="3"] { display: table-cell; }
  .mmp .cmp thead th:first-child { display: none; }
  .mmp .cmp thead th { padding: 0; }
  .mmp .cmp tbody td { padding-left: 16px; padding-right: 0; }
  .mmp .cmp tbody th, .mmp .cmp tbody td { font-size: 14px; padding-top: 11px; padding-bottom: 11px; }
  .mmp .cmp td[data-c="2"] { background: none; }
}
