/* ==========================================================================
   magio design system
   Same language as the product workspace (conversation-demo.html):
   - warm near-white surfaces, floating white cards, hairline borders
   - SF Pro type: Display for titles, Text for body
   - ONE accent: orange is only for CTA / notification / the brand dot
   - one motion vocabulary: 240ms folds, soft lifts, rise-in with blur
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-title: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --bg: #fcfcfb;
  --bg-soft: #f6f6f5;
  --card: #ffffff;
  --fg: #1d1d1f;
  --fg-2: #3a3a3c;
  --muted: #8e8e93;
  --line: rgba(29, 29, 31, 0.08);
  --line-strong: rgba(29, 29, 31, 0.14);
  --accent-soft: rgba(29, 29, 31, 0.045);

  --primary: #ff7a00;
  --primary-hover: #ff8618;
  --primary-deep: #c44700;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 1px 2px rgba(29, 29, 31, 0.04), 0 12px 32px -20px rgba(29, 29, 31, 0.18);
  --shadow-lift: 0 2px 4px rgba(29, 29, 31, 0.05), 0 22px 44px -22px rgba(29, 29, 31, 0.28);
  --shadow-cta: 0 1px 2px rgba(196, 71, 0, 0.25), 0 8px 20px -10px rgba(255, 122, 0, 0.6);

  --ease: cubic-bezier(0.32, 0.72, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fold: 240ms;

  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background:
    radial-gradient(1100px 600px at 10% -10%, rgba(255, 122, 0, 0.035), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(255, 122, 0, 0.18); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 760px; }

/* ---- type ------------------------------------------------------------------ */
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 650; color: var(--fg); margin: 0; }
.h-display { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; }
.h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -0.04em; font-weight: 700; }
.h2 { font-size: clamp(28px, 3.3vw, 42px); line-height: 1.1; letter-spacing: -0.035em; }
.h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.025em; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); letter-spacing: -0.015em; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--fg-2);
  padding: 6px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.04);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }

/* ---- buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-cta); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 2px 4px rgba(196, 71, 0, 0.2), 0 16px 30px -12px rgba(255, 122, 0, 0.6); }
.btn-secondary { background: var(--card); border-color: var(--line-strong); color: var(--fg); box-shadow: 0 1px 2px rgba(29, 29, 31, 0.04); }
.btn-secondary:hover { box-shadow: var(--shadow-lift); }
.btn-ghost { height: 38px; padding: 0 14px; color: var(--fg); }
.btn-ghost:hover { transform: none; background: var(--accent-soft); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn .arrow { transition: transform 0.22s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:focus-visible, .nav-link:focus-visible, .card-link:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* ---- wordmark: "magio" with the orange tittle ------------------------------ */
.mg-word {
  display: inline-flex; align-items: baseline;
  font-family: var(--font-title); font-weight: 600;
  letter-spacing: -0.045em; line-height: 1;
  color: var(--fg); white-space: nowrap; user-select: none;
}
.mg-i { position: relative; display: inline-block; }
.mg-tittle {
  position: absolute; left: 50%; top: 0.1em;
  width: 0.175em; height: 0.175em; border-radius: 50%;
  background: var(--primary); transform: translateX(-50%);
  transition: transform 0.4s var(--ease-out);
}
a:hover > .mg-word .mg-tittle { transform: translateX(-50%) translateY(-0.08em); }

/* ---- nav ------------------------------------------------------------------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  padding: 12px 0;
  transition: padding 0.3s var(--ease);
}
.nav-bar {
  display: flex; align-items: center; gap: 8px;
  height: 58px; padding: 0 10px 0 22px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.03);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.site-nav.is-scrolled .nav-bar { box-shadow: var(--shadow-card); border-color: var(--line-strong); }
.nav-logo { font-size: 23px; margin-right: 14px; }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  height: 38px; padding: 0 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 550; color: var(--fg);
  background: none; border: 0; cursor: pointer;
  transition: background 0.15s ease;
}
.nav-link:hover, .nav-item.is-open > .nav-link { background: var(--accent-soft); }
.nav-link.is-current::after {
  content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--primary); transform: translateX(-50%);
}
.nav-link .chev { width: 14px; height: 14px; transition: transform var(--t-fold) var(--ease); }
.nav-item { position: relative; }
.nav-item.is-open .chev { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-burger { display: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: none; cursor: pointer; align-items: center; justify-content: center; }
.nav-burger:hover { background: var(--accent-soft); }
.nav-burger svg { width: 20px; height: 20px; }

/* dropdown panel */
.nav-panel {
  position: absolute; top: calc(100% + 12px); left: -12px;
  min-width: 300px; padding: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 24px 60px -24px rgba(29, 29, 31, 0.3), 0 2px 6px rgba(29, 29, 31, 0.04);
  opacity: 0; transform: translateY(-6px) scale(0.985); transform-origin: top left;
  pointer-events: none;
  transition: opacity var(--t-fold) var(--ease), transform var(--t-fold) var(--ease);
}
.nav-item.is-open .nav-panel { opacity: 1; transform: none; pointer-events: auto; }
.nav-panel-wide { width: min(880px, calc(100vw - 48px)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 8px; padding: 18px; }
.nav-panel h6 { margin: 4px 10px 8px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.nav-panel a {
  display: block; padding: 9px 10px; border-radius: 12px;
  transition: background 0.15s ease;
}
.nav-panel a:hover { background: var(--accent-soft); }
.nav-panel a b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.nav-panel a span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }

/* mobile sheet */
.nav-sheet {
  position: fixed; inset: 0; z-index: 60; display: none;
}
.nav-sheet.is-open { display: block; }
.nav-sheet-scrim { position: absolute; inset: 0; background: rgba(29, 29, 31, 0.25); opacity: 0; transition: opacity 0.25s ease; }
.nav-sheet.is-in .nav-sheet-scrim { opacity: 1; }
.nav-sheet-panel {
  position: absolute; top: 10px; left: 10px; right: 10px; max-height: calc(100vh - 20px); overflow-y: auto;
  background: var(--card); border-radius: 24px; padding: 18px;
  box-shadow: 0 30px 80px -20px rgba(29, 29, 31, 0.35);
  transform: translateY(-12px) scale(0.98); opacity: 0;
  transition: transform 0.3s var(--ease-out), opacity 0.25s ease;
}
.nav-sheet.is-in .nav-sheet-panel { transform: none; opacity: 1; }
.nav-sheet-panel a { display: block; padding: 12px 10px; font-size: 17px; font-weight: 600; border-radius: 12px; }
.nav-sheet-panel a:hover { background: var(--accent-soft); }
.nav-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.nav-sheet-panel .btn-row { margin-top: 14px; }
.nav-sheet-panel .btn { flex: 1; }

/* ---- sections -------------------------------------------------------------- */
main { display: block; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head .lead { margin-top: 16px; }
.section-head.left { margin-left: 0; text-align: left; }

/* page hero (all inner pages) */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero .lead { margin-top: 18px; max-width: 640px; }
.page-hero.center .lead { margin-left: auto; margin-right: auto; }
.page-hero .btn-row { margin-top: 30px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: var(--fg); }
.crumbs span[aria-hidden] { opacity: 0.5; }

/* ---- cards & grids --------------------------------------------------------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-card);
}
.card-link { display: block; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s ease; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.card h3 { font-size: 17px; letter-spacing: -0.02em; margin-bottom: 6px; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.card .icon {
  width: 38px; height: 38px; border-radius: 11px; margin-bottom: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--fg); border: 1px solid var(--line);
}
.card .icon svg { width: 18px; height: 18px; }
.card-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; font-size: 14px; font-weight: 600; }
.card-link:hover .card-more .arrow { transform: translateX(3px); }
.card-more .arrow { transition: transform 0.22s var(--ease); }

.feature-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature-split.flip > :first-child { order: 2; }
.feature-split .h2 { margin: 16px 0 14px; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; font-size: 15px; color: var(--fg-2); }
.check-list li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--bg-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / 10px no-repeat;
  border: 1px solid var(--line);
}

/* numbered steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 26px;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-size: 14px; font-weight: 650;
  background: var(--fg); color: #fff;
}
.card.step { padding-top: 76px; }
.card.step::before { top: 24px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat b { display: block; font-family: var(--font-title); font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ---- FAQ accordion (same fold as the workspace) ----------------------------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 22px 4px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-title); font-size: 17.5px; font-weight: 600; letter-spacing: -0.02em;
}
.faq-q .plus { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-soft); position: relative; transition: background 0.2s ease, transform var(--t-fold) var(--ease); }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.8px; background: var(--fg); border-radius: 2px; transform: translate(-50%, -50%); }
.faq-q .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--t-fold) var(--ease); }
.faq-item.is-open .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-q:hover .plus { background: var(--accent-soft); }
.fold { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows var(--t-fold) var(--ease), opacity var(--t-fold) var(--ease); }
.fold > div { overflow: hidden; min-height: 0; }
.is-open > .fold { grid-template-rows: 1fr; opacity: 1; }
.faq-a { padding: 0 4px 22px; color: var(--fg-2); font-size: 15.5px; max-width: 700px; }

/* ---- partner tiles (login illustration, reused) ---------------------------- */
.tile {
  width: var(--s, 56px); height: var(--s, 56px);
  border-radius: calc(var(--s, 56px) * 0.3);
  background: var(--card); border: 1px solid rgba(29, 29, 31, 0.05);
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.05), 0 18px 40px -18px rgba(29, 29, 31, 0.28);
  display: flex; align-items: center; justify-content: center;
}
.tile svg { width: 46%; height: 46%; }
.tile.is-woo svg { width: 64%; height: 64%; }

.partner-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.partner-strip .tile { --s: 52px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.partner-strip .tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

/* ---- floating hero stage: the "m." with orbiting partners -------------------- */
.m-stage { position: relative; height: clamp(360px, 44vw, 520px); margin-top: clamp(24px, 4vw, 48px); }
.m-stage .orbit-pos {
  position: absolute;
  transform: translate(-50%, -50%) translate(calc(var(--px, 0px) * var(--d, 1)), calc(var(--py, 0px) * var(--d, 1)));
  transition: transform 0.8s var(--ease);
}
.m-stage .m-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.m-mono {
  display: flex; align-items: baseline;
  font-family: var(--font-title); font-weight: 650;
  font-size: clamp(140px, 17vw, 240px); letter-spacing: -0.05em; line-height: 1;
  color: var(--fg); user-select: none;
  animation: float 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
.m-mono .m-dot {
  width: 0.14em; height: 0.14em; margin-left: 0.035em; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0.04em 0.12em rgba(255, 122, 0, 0.35);
}
.m-floor {
  position: absolute; left: 50%; top: calc(50% + clamp(92px, 10.5vw, 150px));
  width: clamp(140px, 15vw, 220px); height: 22px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(29, 29, 31, 0.15), transparent);
  animation: floor 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
.m-glow { position: absolute; inset: 0; background: radial-gradient(420px 320px at 50% 50%, rgba(255, 122, 0, 0.07), transparent 70%); pointer-events: none; }
.fa { animation: float 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; }
.fb { animation: floatB 5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; }
.fc { animation: floatC 4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(3deg); } }
@keyframes floatB { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(-3deg); } }
@keyframes floatC { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floor { 0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; } 50% { transform: translateX(-50%) scale(0.78); opacity: 0.55; } }

/* ---- product frame (embeds the live workspace) ------------------------------ */
.product-frame {
  position: relative; border-radius: 24px; padding: 10px;
  background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line);
  box-shadow: 0 40px 100px -40px rgba(29, 29, 31, 0.35), 0 2px 6px rgba(29, 29, 31, 0.04);
}
.product-frame .frame-bar { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; }
.product-frame .frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e5e5e7; }
.product-frame .frame-bar span { margin-left: 12px; font-size: 12px; color: var(--muted); }
.product-frame iframe { display: block; width: 100%; height: min(78vh, 760px); border: 0; border-radius: 16px; background: var(--bg); }

/* ---- radiant input (the composer ring from the workspace) ------------------- */
@property --rot { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes rot { to { --rot: 360deg; } }
.radiant {
  --g: conic-gradient(from var(--rot) at 50% 50%, transparent 0deg, transparent 200deg,
       rgba(255, 179, 107, 0.55) 285deg, #ff8a1f 330deg, #ff7a00 345deg, transparent 360deg);
  position: relative; display: flex; align-items: center; gap: 6px;
  max-width: 520px; padding: 6px 6px 6px 20px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  animation: rot 5s linear infinite;
}
.radiant::before { content: ""; position: absolute; inset: -3px; border-radius: inherit; background: var(--g); filter: blur(12px); opacity: 0.22; z-index: -1; transition: opacity 0.4s ease; }
.radiant::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: var(--g);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude;
  opacity: 0.75; pointer-events: none; transition: opacity 0.4s ease;
}
.radiant:focus-within::before { opacity: 0.5; }
.radiant:focus-within::after { opacity: 1; }
.radiant input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-size: 15px; color: var(--fg); }
.radiant input::placeholder { color: #a1a1a6; }
.radiant > * { position: relative; z-index: 1; }
.center .radiant { margin-left: auto; margin-right: auto; }

/* ---- testimonials ---------------------------------------------------------- */
.quotes { columns: 3 300px; column-gap: 16px; }
.quote { break-inside: avoid; margin-bottom: 16px; }
.quote p { color: var(--fg-2); font-size: 15px; }
.quote footer { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13.5px; }
.quote footer .av { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 650; font-size: 12.5px; }
.quote footer b { display: block; font-weight: 600; }
.quote footer span { color: var(--muted); }

/* ---- pricing ------------------------------------------------------------- */
.plan { display: flex; flex-direction: column; }
.plan.is-featured { border-color: rgba(255, 122, 0, 0.45); box-shadow: 0 1px 2px rgba(29, 29, 31, 0.04), 0 26px 60px -28px rgba(255, 122, 0, 0.45); }
.plan .price { margin: 16px 0 4px; font-family: var(--font-title); font-size: 44px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.plan .price span { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .check-list { margin: 20px 0 26px; flex: 1; }
.plan .badge { position: absolute; top: 18px; right: 18px; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 650; background: rgba(255, 122, 0, 0.1); color: var(--primary-deep); }
.badge-neutral { background: var(--bg-soft); color: var(--fg-2); border: 1px solid var(--line); }

/* ---- CTA band ------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(56px, 8vw, 96px) var(--gutter); border-radius: 32px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% 0%, rgba(255, 122, 0, 0.08), transparent 70%); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band .lead { margin: 14px auto 30px; max-width: 540px; }

/* ---- article (blog + legal) ------------------------------------------------- */
.prose { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.7; color: var(--fg-2); }
.prose h2 { font-size: 28px; letter-spacing: -0.03em; margin: 52px 0 14px; color: var(--fg); }
.prose h3 { font-size: 20px; letter-spacing: -0.02em; margin: 36px 0 10px; color: var(--fg); }
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--fg); text-decoration: underline; text-decoration-color: rgba(255, 122, 0, 0.6); text-underline-offset: 3px; }
.prose strong { color: var(--fg); }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--primary); color: var(--fg); font-size: 19px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; color: var(--fg); }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: #1d1d1f; color: #f5f5f7; padding: 18px 20px; border-radius: 14px; overflow-x: auto; font-size: 14px; }
.prose pre code { background: none; padding: 0; color: inherit; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.post-card .tagline { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 36px; }
.chip {
  height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--card); font-size: 14px; font-weight: 550; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { background: var(--bg-soft); }
.chip.is-on { background: var(--fg); border-color: var(--fg); color: #fff; }

/* ---- forms ------------------------------------------------------------------ */
.field { display: block; margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 600; }
.input, textarea.input, select.input {
  width: 100%; height: 48px; padding: 0 16px;
  font: inherit; font-size: 15px; color: var(--fg);
  background: var(--card); border: 1px solid #e5e5e7; border-radius: 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
textarea.input { height: auto; min-height: 130px; padding: 14px 16px; resize: vertical; }
.input:hover { border-color: #d2d2d7; }
.input:focus { outline: none; border-color: transparent; box-shadow: 0 0 0 2px var(--fg); }

/* ---- footer ----------------------------------------------------------------- */
.site-footer { padding: 72px 0 40px; margin-top: 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-brand .mg-word { font-size: 26px; }
.footer-brand p { margin: 14px 0 0; max-width: 260px; font-size: 14px; color: var(--muted); }
.footer-col h6 { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--fg); }
.footer-col a { display: block; padding: 4px 0; font-size: 14px; color: var(--muted); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--fg); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---- motion: scroll reveal + page transitions -------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out); transition-delay: var(--delay, 0s); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }
html.no-js .reveal { opacity: 1; transform: none; filter: none; }
body.page-in main, body.page-in .site-footer { animation: pageIn 0.6s var(--ease-out) both; }
body.page-out main, body.page-out .site-footer { animation: pageOut 0.22s ease-in both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes pageOut { to { opacity: 0; transform: translateY(-6px); } }

/* ---- intro: "m." becomes magio (homepage, once per session) --------------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--bg);
}
.intro-bloom { position: absolute; left: 50%; top: 50%; width: 900px; height: 600px; margin: -300px 0 0 -450px; background: radial-gradient(closest-side, rgba(255, 122, 0, 0.1), rgba(255, 179, 107, 0.05) 45%, transparent 75%); opacity: 0; }
.intro-stack { position: relative; display: flex; flex-direction: column; align-items: center; }
.intro-word { display: inline-flex; align-items: baseline; font-family: var(--font-title); font-weight: 650; font-size: clamp(64px, 9vw, 124px); letter-spacing: -0.05em; line-height: 1; color: var(--fg); transform-origin: 0 0; }
.intro-mark { display: inline-block; width: 0.14em; height: 0.14em; margin-left: 0.035em; visibility: hidden; }
.intro-rest { display: inline-block; overflow: hidden; white-space: nowrap; max-width: 0; padding: 0.12em 0 0.28em; margin: -0.12em 0 -0.28em; }
.intro-rest > span { display: inline-block; opacity: 0; }
.intro .mg-tittle { opacity: 0; }
.intro-dot { position: fixed; left: 0; top: 0; z-index: 101; border-radius: 50%; background: var(--primary); transform-origin: 0 0; box-shadow: 0 0.2em 0.6em rgba(255, 122, 0, 0.35); pointer-events: none; }
.intro-tag { margin: clamp(22px, 2.6vw, 34px) 0 0; font-size: clamp(15px, 1.4vw, 20px); color: var(--muted); white-space: nowrap; }
.intro-tag b { color: var(--fg); font-weight: 600; }
.intro-tag span { display: inline-block; opacity: 0; }
html.has-intro body > *:not(.intro):not(.intro-dot) { opacity: 0; }

/* ---- responsive ------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-burger { display: inline-flex; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .feature-split { grid-template-columns: 1fr; }
  .feature-split.flip > :first-child { order: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .m-stage .orbit-pos.is-far { display: none; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-base { flex-direction: column; }
  .nav-actions .btn-primary { display: none; }
  .btn-row .btn { flex: 1 1 100%; }
  .product-frame iframe { height: 70vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* ---- pricing calculator controls ------------------------------------------ */
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.seg button { height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background 0.2s var(--ease), color 0.2s ease, box-shadow 0.2s ease; }
.seg button.is-on { background: var(--card); color: var(--fg); box-shadow: 0 1px 2px rgba(29, 29, 31, 0.08), 0 4px 10px -4px rgba(29, 29, 31, 0.15); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; outline: none;
  background: linear-gradient(to right, var(--fg) 0 var(--fill, 30%), #e5e5e7 var(--fill, 30%) 100%); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--card); border: 1px solid var(--line-strong); box-shadow: 0 2px 8px rgba(29, 29, 31, 0.2); cursor: grab; }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--card); border: 1px solid var(--line-strong); box-shadow: 0 2px 8px rgba(29, 29, 31, 0.2); cursor: grab; }
.big-num { font-family: var(--font-title); font-size: clamp(40px, 5vw, 60px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }

/* ---- marketing mocks: small, true-to-product UI illustrations ------------- */
.mock { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: var(--shadow-lift); }
.mock-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.mock-head .av { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 650; }
.mock-head b { display: block; font-weight: 600; }
.mock-head span { color: var(--muted); font-size: 12px; }
.mock-head .tile { --s: 30px; margin-left: auto; }
.bubbles { display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 82%; padding: 9px 13px; border-radius: 18px; font-size: 14px; line-height: 1.45; }
.bubble.in { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble.out { align-self: flex-end; background: #f5f5f4; border: 1px solid rgba(29, 29, 31, 0.04); border-bottom-right-radius: 6px; }
.bubble .meta { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); text-align: right; }
.product-card { display: flex; gap: 12px; align-items: center; padding: 10px; margin-top: 8px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.product-card .ph { width: 52px; height: 52px; flex: none; border-radius: 10px; background: linear-gradient(135deg, #f3ede6, #e8e2da); }
.product-card b { display: block; font-size: 13.5px; font-weight: 600; }
.product-card span { display: block; font-size: 12.5px; color: var(--muted); }
.stock { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #1d7a3a; }
.stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34c759; }
.url-chip { display: inline-flex; align-items: center; gap: 0; max-width: 100%; overflow: hidden; margin-top: 8px; padding: 7px 12px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-2); white-space: nowrap; }
.url-chip mark { background: rgba(255, 122, 0, 0.12); color: var(--primary-deep); border-radius: 5px; padding: 1px 4px; }
.ig-post { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ig-photo { aspect-ratio: 4 / 3; border-radius: 16px; background: linear-gradient(135deg, #f1e7dc 0%, #e9dccf 45%, #f7efe7 100%); position: relative; overflow: hidden; }
.ig-photo::after { content: ""; position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 3 / 4; transform: translate(-50%, -46%) rotate(-6deg); border-radius: 12px; background: linear-gradient(160deg, #fff, #f0e9e1); box-shadow: 0 20px 40px -18px rgba(29, 29, 31, 0.35); }
.ig-comment { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.ig-comment .av { width: 28px; height: 28px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #feda75, #d62976 60%, #4f5bd5); }
.ig-comment b { font-weight: 600; margin-right: 6px; }
.flow-arrow { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.flow-arrow::before, .flow-arrow::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.channel-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.channel { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 10px; }
.channel b { font-size: 14px; font-weight: 600; }
.channel .live { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.channel .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(52, 199, 89, 0); } }
.tile-web { display: flex; align-items: center; justify-content: center; color: var(--fg); }
.tile-web svg { width: 46%; height: 46%; }
.pillar-list { display: grid; gap: 10px; margin-top: 24px; }
.pillar-list div { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--fg-2); }
.pillar-list div > span:first-child { flex: none; width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--bg-soft); border: 1px solid var(--line); }
.pillar-list svg { width: 15px; height: 15px; }
.pillar-list b { color: var(--fg); font-weight: 600; }
@media (max-width: 820px) { .channel-row { grid-template-columns: repeat(3, 1fr); } }

/* ---- small layout fixes ---------------------------------------------------- */
.cta-band .radiant { margin-left: auto; margin-right: auto; text-align: left; }
.plan .price + .btn { margin-top: 20px; }

/* hidden always wins (filters, toggles) */
[hidden] { display: none !important; }
.product-card .stock { display: inline-flex; }

/* ---- live agent phone ------------------------------------------------------ */
.phone {
  width: min(390px, 100%); margin: 0 auto; padding: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 36px;
  box-shadow: 0 40px 90px -40px rgba(29, 29, 31, 0.4), 0 2px 6px rgba(29, 29, 31, 0.04);
}
.phone-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 14px; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--fg-2); }
.live-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.18); animation: pulse 2.4s ease-in-out infinite; }
.phone-screen { position: relative; height: min(620px, 74vh); border-radius: 26px; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); }
.phone-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; pointer-events: none; transition: opacity 0.5s ease; }
.phone-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 28px; text-align: center; transition: opacity 0.4s ease; }
.phone-fallback .m-mono { justify-content: center; }
.phone-fallback p { margin: 0; color: var(--muted); font-size: 15px; }
.phone-fallback p b { color: var(--fg); font-weight: 600; }
.is-live .phone-screen iframe { opacity: 1; pointer-events: auto; }
.is-live .phone-fallback { opacity: 0; pointer-events: none; }

/* ---- live chat notice (shown only if the widget cannot load) -------------- */
.chat-notice {
  position: fixed; left: 50%; bottom: 24px; z-index: 90;
  transform: translate(-50%, 12px); opacity: 0;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lift);
  font-size: 14px; color: var(--fg-2);
  transition: opacity 0.3s ease, transform 0.35s var(--ease-out);
}
.chat-notice.is-in { opacity: 1; transform: translate(-50%, 0); }
.chat-notice a { color: var(--fg); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Instagram comment-to-DM demo: two phones, real IG chrome, magio in between.
   Designed at 640 x 700 and scaled to fit (--k set by magio.js).
   ========================================================================== */
.ig-stage { position: relative; width: 100%; max-width: 640px; margin: 0 auto; aspect-ratio: 640 / 700; }
.ig-canvas { position: absolute; left: 0; top: 0; width: 640px; height: 700px; transform-origin: 0 0; transform: scale(var(--k, 1)); }
.ig-canvas::before {
  content: ""; position: absolute; inset: 40px 20px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 122, 0, 0.10), rgba(214, 41, 118, 0.05) 55%, transparent 80%);
  filter: blur(10px);
}
.ig-phone {
  position: absolute; width: 300px; height: 640px; padding: 9px;
  border-radius: 50px; background: #1d1d1f;
  box-shadow: 0 0 0 1.5px #3a3a3c inset, 0 50px 90px -40px rgba(29, 29, 31, 0.55), 0 10px 24px -14px rgba(29, 29, 31, 0.35);
}
.ig-phone-post { left: 0; top: 40px; transform: rotate(-3deg); z-index: 2; }
.ig-phone-dm { right: 0; top: 0; transform: rotate(2.5deg); z-index: 3; }
.ig-screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 41px;
  background: #fff; color: #000; display: flex; flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 12.5px; letter-spacing: -0.01em; line-height: 1.35;
}
.ig-screen svg { display: inline-block; }
.ig-status { flex: none; position: relative; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 6px 24px 0 30px; font-size: 14px; font-weight: 600; }
.ig-island { position: absolute; left: 50%; top: 9px; width: 92px; height: 26px; border-radius: 20px; background: #000; transform: translateX(-50%); }
.ig-sys { display: inline-flex; gap: 5px; align-items: center; }
.ig-ico { display: inline-flex; width: 24px; height: 24px; color: #000; }
.ig-ico svg { width: 100%; height: 100%; }
.ig-verified { width: 13px; height: 13px; vertical-align: -2px; margin-left: 2px; }
.ig-av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; text-transform: lowercase; }
.ig-av-brand { background: #1d1d1f; letter-spacing: -0.02em; }
.ig-av-lg { width: 34px; height: 34px; font-size: 11px; }
.ig-ring { flex: none; padding: 2px; border-radius: 50%; background: conic-gradient(from 200deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); }
.ig-ring .ig-av { border: 2px solid #fff; width: 32px; height: 32px; }
.ig-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ig-who b { font-size: 13px; font-weight: 600; }
.ig-who span { font-size: 11px; color: #737373; }

/* post screen */
.ig-appbar { flex: none; display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 12px; font-size: 15px; }
.ig-post-head { flex: none; display: flex; align-items: center; gap: 9px; padding: 6px 12px; }
.ig-more { width: 20px; height: 20px; }
.ig-photo { flex: none; position: relative; height: 236px; overflow: hidden; background: #e6d6c3; }
.ig-photo-svg { width: 100%; height: 100%; }
.ig-sticker {
  position: absolute; right: 12px; bottom: 12px; padding: 6px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: #000; font-size: 11.5px; font-weight: 600;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.25);
}
.ig-actions { flex: none; display: flex; gap: 14px; padding: 9px 12px 5px; }
.ig-actions .ig-save { margin-left: auto; }
.ig-likes { padding: 0 12px; font-size: 12px; }
.ig-caption { padding: 3px 12px 0; font-size: 12px; }
.ig-comments { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 2px 6px 4px; }
.ig-c { display: flex; align-items: flex-start; gap: 8px; padding: 6px 6px; margin-top: 2px; border-radius: 12px; font-size: 12px; }
.ig-c .ig-av { width: 26px; height: 26px; font-size: 9px; }
.ig-c p { flex: 1; margin: 0; }
.ig-c em { display: block; font-style: normal; font-size: 10.5px; color: #737373; margin-top: 2px; }
.ig-c-heart { width: 13px; height: 13px; color: #737373; margin-top: 3px; }
.ig-by { color: var(--primary-deep); font-weight: 600; }
.ig-c-new.is-on { animation: igGlow 2.6s ease-out; }
@keyframes igGlow { 0% { background: rgba(255, 122, 0, 0.16); } 100% { background: transparent; } }
.ig-commentbar { flex: none; display: flex; align-items: center; gap: 9px; padding: 9px 12px 18px; border-top: 1px solid #efefef; }
.ig-commentbar .ig-av { width: 28px; height: 28px; font-size: 9px; }
.ig-typing-field { flex: 1; color: #737373; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-typing-field.is-typing { color: #000; }
.ig-typing-field.is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 14px; margin-left: 1px; vertical-align: -2px; background: #0095f6; animation: igCaret 0.8s steps(1) infinite; }
@keyframes igCaret { 50% { opacity: 0; } }
.ig-post-btn { color: #0095f6; font-weight: 600; opacity: 0.35; transition: opacity 0.2s; }
.ig-post-btn.is-ready { opacity: 1; }

/* DM screen */
.ig-dm-head { flex: none; display: flex; align-items: center; gap: 9px; padding: 6px 12px 10px; border-bottom: 1px solid #efefef; }
.ig-dm-head .ig-ico { width: 22px; height: 22px; }
.ig-thread { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px 12px; }
.ig-quote { align-self: flex-end; max-width: 80%; margin-top: 8px; padding-right: 10px; border-right: 3px solid #dbdbdb; text-align: right; }
.ig-quote span { display: block; font-size: 10.5px; color: #737373; margin-bottom: 3px; }
.ig-quote p { margin: 0; padding: 7px 11px; border-radius: 16px; background: #efefef; color: #737373; display: inline-block; }
.ig-msg { max-width: 82%; margin-top: 6px; padding: 8px 12px; border-radius: 20px; font-size: 12.5px; }
.ig-msg.in { align-self: flex-start; background: #efefef; }
.ig-msg.out { align-self: flex-end; color: #fff; background: linear-gradient(135deg, #8a3ffc 0%, #6d4dfb 45%, #3d6cf6 100%); }
.ig-typing { display: inline-flex; gap: 4px; padding: 11px 13px; }
.ig-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8e8e8e; animation: cbblinkIg 1.2s infinite ease-in-out; }
.ig-typing i:nth-child(2) { animation-delay: 0.15s; } .ig-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes cbblinkIg { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.ig-card { position: relative; align-self: flex-start; width: 78%; margin-top: 6px; border-radius: 18px; overflow: visible; background: #efefef; }
.ig-card-img { height: 112px; border-radius: 18px 18px 0 0; overflow: hidden; }
.ig-card-img svg { width: 100%; height: 100%; }
.ig-card-body { padding: 8px 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.ig-card-body b { font-size: 12.5px; font-weight: 600; }
.ig-card-body > span { font-size: 11.5px; color: #555; }
.ig-stock { color: #1d7a3a; font-weight: 600; }
.ig-url { font-family: var(--font-mono); font-size: 10px !important; color: #737373 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-url mark { background: rgba(255, 122, 0, 0.14); color: var(--primary-deep); border-radius: 4px; padding: 0 3px; }
.ig-react { position: absolute; right: -6px; bottom: -10px; width: 26px; height: 26px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
.ig-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ig-quick span { padding: 6px 11px; border-radius: 999px; border: 1px solid #dbdbdb; font-size: 11.5px; font-weight: 600; color: #0095f6; background: #fff; }
.ig-composer { flex: none; display: flex; align-items: center; gap: 8px; margin: 6px 10px 16px; padding: 5px 10px 5px 5px; border-radius: 999px; background: #efefef; }
.ig-cam { width: 30px; height: 30px; border-radius: 50%; background: #3a6ff7; display: inline-flex; padding: 5px; }
.ig-cam svg { width: 100%; height: 100%; }
.ig-input { flex: 1; color: #737373; }
.ig-composer .ig-ico { width: 20px; height: 20px; }

/* the magio bridge */
.ig-bridge { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.ig-wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ig-wire path { fill: none; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; }
.ig-wire-line { stroke: var(--primary); stroke-width: 2.5; }
.ig-wire-glow { stroke: rgba(255, 122, 0, 0.35); stroke-width: 10; filter: blur(5px); }
.ig-wire-dot { fill: var(--primary); opacity: 0; filter: drop-shadow(0 0 6px rgba(255, 122, 0, 0.9)); }
.ig-bridge.is-on .ig-wire path { transition: stroke-dashoffset 1s cubic-bezier(0.65, 0, 0.35, 1); stroke-dashoffset: 0; }
.ig-badge {
  position: absolute; left: 351px; top: 300px; transform: translate(-50%, -50%) scale(0.6); opacity: 0;
  display: flex; align-items: center; gap: 9px; padding: 7px 14px 7px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 122, 0, 0.35);
  box-shadow: 0 14px 34px -12px rgba(255, 122, 0, 0.55), 0 2px 6px rgba(29, 29, 31, 0.08);
  font-size: 13px; color: var(--fg-2); white-space: nowrap;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.ig-badge b { color: var(--fg); font-weight: 650; }
.ig-badge-m { width: 32px; height: 32px; border-radius: 50%; background: #1d1d1f; color: #fff; display: inline-flex; align-items: baseline; justify-content: center; padding-top: 4px; font-family: var(--font-title); font-weight: 650; font-size: 17px; letter-spacing: -0.04em; }
.ig-badge-m i { width: 4px; height: 4px; margin-left: 1px; border-radius: 50%; background: var(--primary); }
.ig-bridge.is-on .ig-badge { opacity: 1; transform: translate(-50%, -50%) scale(1); transition-delay: 0.35s; }

/* step reveal: hidden items take no space until their turn */
.ig-stage [data-step]:not(.ig-bridge), .ig-stage [data-show] {
  max-height: 0; opacity: 0; margin-top: 0; padding-top: 0; padding-bottom: 0; overflow: hidden;
  transform: translateY(10px) scale(0.97); transform-origin: left bottom;
  transition: max-height 0.45s var(--ease-out), opacity 0.35s ease, transform 0.45s var(--ease-out), margin 0.45s var(--ease-out), padding 0.45s var(--ease-out);
}
.ig-stage .is-on[data-step]:not(.ig-bridge), .ig-stage .is-on[data-show] { max-height: 320px; opacity: 1; transform: none; overflow: visible; margin-top: 6px; padding-top: revert-layer; padding-bottom: revert-layer; }
.ig-stage .ig-msg.is-on { padding: 8px 12px; }
.ig-stage .ig-typing.is-on { padding: 11px 13px; }
.ig-stage .ig-c.is-on { padding: 6px; }
.ig-stage .ig-react[data-step] { max-height: none; overflow: visible; transform: scale(0); margin: 0; }
.ig-stage .ig-react.is-on { transform: scale(1); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s; margin: 0; }
.ig-stage.is-fading .ig-canvas > * { transition: opacity 0.5s ease; }
.ig-stage.is-reset [data-step], .ig-stage.is-reset [data-show] { transition: none !important; }

/* the new demo's photo is a real scene: switch off the old mock overlay */
.ig-stage .ig-photo { aspect-ratio: auto; border-radius: 0; }
.ig-stage .ig-photo::after { display: none; }

/* ==========================================================================
   Shopify + WhatsApp live-sync demo (reuses the .ig-stage scaling + steps)
   ========================================================================== */
.shop-win {
  position: absolute; left: 0; top: 150px; width: 352px; z-index: 2;
  background: #fff; border-radius: 16px; overflow: hidden; transform: rotate(-2deg);
  box-shadow: 0 0 0 1px rgba(29, 29, 31, 0.08), 0 50px 90px -40px rgba(29, 29, 31, 0.45), 0 8px 20px -12px rgba(29, 29, 31, 0.25);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; color: #303030;
}
.shop-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f1f1f1; border-bottom: 1px solid #e3e3e3; }
.shop-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d6d6d6; }
.shop-bar span { margin-left: 10px; font-size: 10.5px; color: #8a8a8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-body { padding: 14px 14px 16px; background: #f7f7f7; }
.shop-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; }
.shop-logo { width: 22px; height: 22px; display: inline-flex; }
.shop-logo svg { width: 100%; height: 100%; }
.shop-sync { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: #fff; border: 1px solid #e3e3e3; font-size: 10.5px; color: #616161; }
.shop-sync i { width: 6px; height: 6px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.2); animation: pulse 2.4s ease-in-out infinite; }
.shop-m { font-weight: 650; color: #1d1d1f; }
.shop-th, .shop-row { display: grid; grid-template-columns: 32px 1fr 66px 64px; align-items: center; gap: 8px; }
.shop-th { padding: 0 10px 6px; font-size: 10px; font-weight: 600; color: #8a8a8a; text-transform: uppercase; letter-spacing: 0.04em; }
.shop-th span:first-child { grid-column: 1 / 3; }
.shop-row { padding: 9px 10px; margin-top: 4px; border-radius: 10px; background: #fff; border: 1px solid #ebebeb; font-size: 11.5px; transition: box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease; }
.shop-thumb { width: 32px; height: 32px; border-radius: 8px; overflow: hidden; display: block; }
.shop-thumb svg { width: 100%; height: 100%; }
.shop-name { font-weight: 600; line-height: 1.25; }
.shop-name em { display: block; font-style: normal; font-weight: 400; font-size: 10px; color: #8a8a8a; }
.shop-inv b { font-weight: 500; }
.shop-price s { color: #9a9a9a; margin-right: 2px; }
.shop-sale { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 5px; background: #e6f4ea; color: #1d7a3a; font-style: normal; font-size: 9.5px; font-weight: 700; }
.ig-stage .shop-row[data-step] { max-height: none; opacity: 1; transform: none; overflow: visible; margin-top: 4px; padding: 9px 10px; }
.ig-stage .shop-row-hit.is-on { border-color: rgba(255, 122, 0, 0.55); background: #fffaf5; box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.12), 0 10px 22px -14px rgba(255, 122, 0, 0.6); }
.shop-flash { animation: shopFlash 1.2s ease-out; }
@keyframes shopFlash { 0% { color: var(--primary-deep); background: rgba(255, 122, 0, 0.18); } 100% { background: transparent; } }
.shop-order { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #1d1d1f; color: #fff; font-size: 11.5px; }
.shop-order b { display: block; font-weight: 600; }
.shop-order em { display: block; font-style: normal; color: rgba(255, 255, 255, 0.7); font-size: 10.5px; }
.shop-order mark { background: rgba(255, 122, 0, 0.25); color: #ffb36b; border-radius: 4px; padding: 0 3px; }
.shop-order-ico { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #34c759; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.ig-stage .shop-order.is-on { padding: 10px 12px; margin-top: 10px; }

/* WhatsApp phone */
.wa-phone { right: 0; top: 30px; transform: rotate(2.5deg); z-index: 3; }
.wa-screen { background: #efeae2; }
.wa-screen .ig-status { background: #f6f6f6; }
.wa-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 4px 12px 9px; background: #f6f6f6; border-bottom: 1px solid #e2e2e2; }
.wa-blue { color: #007aff; width: 22px; height: 22px; }
.wa-av { width: 32px; height: 32px; background: #1f3d2b; font-size: 10px; text-transform: none; }
.wa-thread {
  flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px 10px 8px;
  background-color: #efeae2;
  background-image: radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1.5px), radial-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1.5px);
  background-size: 22px 22px, 31px 31px; background-position: 0 0, 11px 15px;
}
.wa-day { align-self: center; margin-bottom: 6px; padding: 3px 10px; border-radius: 8px; background: #fff; font-size: 10.5px; color: #54656f; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06); }
.wa-msg { position: relative; max-width: 84%; margin-top: 6px; padding: 7px 9px 7px; border-radius: 10px; font-size: 12.5px; line-height: 1.35; color: #111b21; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); }
.wa-msg.in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.wa-msg.out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 2px; }
.wa-meta { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 6px 0 -3px 10px; font-size: 9.5px; color: #667781; }
.wa-ticks { width: 15px; height: 10px; }
.wa-typing { display: inline-flex; gap: 4px; padding: 10px 12px; }
.wa-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: cbblinkIg 1.2s infinite ease-in-out; }
.wa-typing i:nth-child(2) { animation-delay: 0.15s; } .wa-typing i:nth-child(3) { animation-delay: 0.3s; }
.wa-product { padding: 4px; width: 84%; }
.wa-p-img { height: 118px; border-radius: 8px; overflow: hidden; }
.wa-p-img svg { width: 100%; height: 100%; }
.wa-p-body { padding: 7px 6px 4px; display: flex; flex-direction: column; gap: 2px; }
.wa-p-body > b { font-size: 12.5px; }
.wa-p-body > span { font-size: 11.5px; color: #54656f; }
.wa-p-body s { color: #8696a0; }
.wa-p-btn { margin: 4px -4px 0; padding: 8px 0 4px; border-top: 1px solid #e9edef; text-align: center; color: #027eb5; font-weight: 600; font-size: 12px; }
.wa-product .wa-meta { position: absolute; right: 10px; top: 104px; margin: 0; padding: 1px 6px; border-radius: 8px; background: rgba(0, 0, 0, 0.35); color: #fff; float: none; }
.wa-composer { flex: none; display: flex; align-items: center; gap: 10px; padding: 7px 12px 18px; background: #f6f6f6; }
.wa-plus { font-size: 24px; line-height: 1; color: #007aff; font-weight: 300; }
.wa-input { flex: 1; height: 30px; border-radius: 16px; background: #fff; border: 1px solid #e2e2e2; }
.wa-composer .ig-ico { width: 21px; height: 21px; color: #007aff; }
.ig-stage .wa-msg.is-on { padding: 7px 9px; margin-top: 6px; }
.ig-stage .wa-product.is-on { padding: 4px; }
.ig-stage .wa-typing.is-on { padding: 10px 12px; }
.shop-badge { left: 178px; top: 104px; }

/* ==========================================================================
   CRM demo: website chat qualifies, HubSpot record fills in live
   ========================================================================== */
.crm-win {
  position: absolute; right: 0; top: 40px; width: 362px; z-index: 2;
  background: #fff; border-radius: 16px; overflow: hidden; transform: rotate(2deg);
  box-shadow: 0 0 0 1px rgba(29, 29, 31, 0.08), 0 50px 90px -40px rgba(29, 29, 31, 0.45), 0 8px 20px -12px rgba(29, 29, 31, 0.25);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; color: #33475b;
}
.crm-body { padding: 14px; background: #f5f8fa; }
.crm-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 12px; }
.crm-crumb { color: #516f90; }
.crm-crumb b { margin: 0 3px; font-weight: 400; color: #99acc2; }
.crm-card { background: #fff; border: 1px solid #dfe3eb; border-radius: 10px; padding: 14px; }
.crm-person { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid #eaf0f6; }
.crm-person b { display: block; font-size: 14px; color: #2d3e50; }
.crm-person em { display: block; font-style: normal; font-size: 10.5px; color: #7c98b6; }
.crm-av { width: 38px; height: 38px; border-radius: 50%; background: #ff7a59; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.crm-props { display: grid; gap: 0; }
.crm-prop { display: grid; grid-template-columns: 104px 1fr; align-items: center; padding: 6px 0; border-bottom: 1px dashed #eaf0f6; font-size: 11.5px; }
.crm-prop:last-child { border-bottom: 0; }
.crm-prop span { color: #7c98b6; }
.crm-prop b { font-weight: 600; color: #2d3e50; padding: 1px 6px; margin-left: -6px; border-radius: 5px; justify-self: start; }
.crm-deal { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid #dfe3eb; font-size: 11.5px; }
.crm-deal b { display: block; color: #2d3e50; }
.crm-deal em { display: block; font-style: normal; color: #516f90; font-size: 10.5px; }
.crm-deal-ico { flex: none; width: 26px; height: 26px; border-radius: 7px; background: #e5f8f6; color: #00a4bd; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.crm-cal { margin-left: auto; width: 22px; height: 22px; display: inline-flex; }
.crm-cal svg { width: 100%; height: 100%; }
.crm-note { display: flex; gap: 10px; margin-top: 10px; padding: 11px 12px; border-radius: 10px; background: #fff; border: 1px solid rgba(255, 122, 0, 0.35); box-shadow: 0 8px 20px -14px rgba(255, 122, 0, 0.6); font-size: 11px; line-height: 1.45; }
.crm-note p { margin: 0; color: #33475b; }
.crm-note b { display: block; color: #2d3e50; margin-bottom: 2px; }
.crm-note-m { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #1d1d1f; color: #fff; display: inline-flex; align-items: baseline; justify-content: center; padding-top: 2px; font-family: var(--font-title); font-weight: 650; font-size: 14px; }
.crm-note-m i { width: 3.5px; height: 3.5px; margin-left: 1px; border-radius: 50%; background: var(--primary); }
.ig-stage .crm-deal.is-on, .ig-stage .crm-note.is-on { padding: 10px 12px; margin-top: 10px; }

.crm-chat { position: absolute; left: 0; top: 150px; width: 262px; height: 500px; z-index: 3; transform: rotate(-2deg);
  border-radius: 18px; background: linear-gradient(180deg, #f3f1ee, #ebe8e3); box-shadow: 0 0 0 1px rgba(29, 29, 31, 0.06), 0 50px 90px -40px rgba(29, 29, 31, 0.45); overflow: hidden; }
.crm-site { position: absolute; inset: 0; padding: 22px 20px; }
.crm-site span { display: block; height: 10px; margin-bottom: 10px; border-radius: 5px; background: rgba(29, 29, 31, 0.07); }
.crm-site span:nth-child(1) { width: 40%; height: 14px; }
.crm-site span:nth-child(2) { width: 85%; } .crm-site span:nth-child(3) { width: 65%; }
.crm-widget { position: absolute; left: 12px; right: 12px; bottom: 12px; top: 70px; display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: 0 20px 40px -16px rgba(29, 29, 31, 0.35); overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; }
.crm-w-head { flex: none; display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-bottom: 1px solid #f0f0f0; font-size: 12.5px; color: #1d1d1f; }
.crm-w-head b { display: block; font-weight: 650; }
.crm-w-head em { display: flex; align-items: center; gap: 5px; font-style: normal; font-size: 10.5px; color: #8e8e93; }
.crm-w-head em i { width: 6px; height: 6px; border-radius: 50%; background: #34c759; }
.crm-w-av { width: 30px; height: 30px; border-radius: 50%; background: #1f2f44; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
.crm-w-thread { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px 12px; background: #fcfcfb; }
.crm-m { max-width: 86%; margin-top: 6px; padding: 8px 11px; border-radius: 16px; font-size: 12px; line-height: 1.4; }
.crm-m.in { align-self: flex-start; background: #f2f2f1; color: #1d1d1f; border-bottom-left-radius: 5px; }
.crm-m.out { align-self: flex-end; background: #1d1d1f; color: #fff; border-bottom-right-radius: 5px; }
.ig-stage .crm-m.is-on { padding: 8px 11px; margin-top: 6px; }
.crm-w-input { flex: none; display: flex; align-items: center; justify-content: space-between; margin: 8px 10px 10px; padding: 6px 6px 6px 12px; border-radius: 999px; border: 1px solid #e5e5e7; font-size: 11.5px; color: #a1a1a6; }
.crm-w-send { width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.crm-badge { left: 132px; top: 100px; }
