/* ==========================================================================
   maggio 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: "maggio" 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 maggio (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; }
