/* LimeOne — sito commerciale · design system condiviso */
:root {
  --lime: #B9F23D; --lime-press: #A6DE2A; --lime-deep: #5C7A00;
  --indigo: #4B3FD4; --indigo-soft: #6B5DF5;
  --ink: #141322; --ink-2: #1E1C30;
  --bg: #FAFAF7; --bg-2: #F2F1EB;
  --surface: #FFFFFF; --surface-2: #F4F3ED;
  --text: #16151D; --text-2: #56545F; --muted: #8A8893;
  --line: #E8E7DF; --line-strong: #DAD9CF;
  --green: #1F8A5B; --orange: #C2562B; --teal: #286C7E;
  --lime-tint: #EEF8D4; --indigo-tint: #EDEBFB; --green-tint: #DDF1E8; --orange-tint: #FBEBDC; --teal-tint: #DDEBF0;
  --font: 'Figtree', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 22px; --r-2xl: 28px;
  --shadow-sm: 0 1px 2px rgba(20,19,34,0.06);
  --shadow-md: 0 6px 22px rgba(20,19,34,0.08);
  --shadow-lg: 0 24px 60px rgba(20,19,34,0.14);
  --shadow-xl: 0 40px 90px rgba(20,19,34,0.20);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --maxw: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.mono { font-family: var(--mono); }
::selection { background: var(--lime); color: #16151D; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 20px; border: 3px solid var(--bg); }

/* layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }
.center { text-align: center; }

/* type */
h1, h2, h3, h4 { letter-spacing: -0.03em; line-height: 1.05; font-weight: 800; }
.h1 { font-size: clamp(38px, 6vw, 68px); }
.h2 { font-size: clamp(30px, 4.4vw, 50px); }
.h3 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; }
.lead { font-size: clamp(17px, 1.7vw, 21px); color: var(--text-2); line-height: 1.6; }
.overline { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--indigo); }
.text-2 { color: var(--text-2); }
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }

/* pill / eyebrow */
.pill { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime-deep); }
.pill--lime { background: var(--lime-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lime-deep) 22%, transparent); color: var(--lime-deep); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 50px; padding: 0 24px; border-radius: 999px; font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; cursor: pointer; border: none; font-family: inherit; transition: all .16s var(--ease); white-space: nowrap; }
.btn svg { width: 19px; height: 19px; }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn--lime { background: var(--lime); color: #16151D; box-shadow: var(--shadow-sm); }
.btn--lime:hover { background: var(--lime-press); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--text); }
.btn--light { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.btn--light:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--block { width: 100%; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; transition: all .25s var(--ease); }
.nav-inner { display: flex; align-items: center; gap: 18px; height: 72px; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--text-2); padding: 9px 13px; border-radius: 10px; transition: all .14s; white-space: nowrap; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.logo .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); align-self: flex-end; margin-bottom: 5px; margin-left: 2px; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 11px; align-items: center; justify-content: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); margin-left: auto; }

/* cards */
.card { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); padding: 28px; transition: all .18s var(--ease); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px; }
.ico svg { width: 26px; height: 26px; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* dark section */
.dark { background: var(--ink); color: #fff; }
.dark .lead, .dark .text-2 { color: rgba(255,255,255,0.66); }
.dark .card { background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.09); }
.dark .card:hover { background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16); }
.dark .overline { color: var(--lime); }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { background: var(--surface); border-radius: var(--r-2xl); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); padding: 26px; display: flex; flex-direction: column; }
.plan--feat { box-shadow: var(--shadow-lg), inset 0 0 0 2px var(--lime); position: relative; }
.plan-name { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.plan-price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin-top: 12px; }
.plan-price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; margin: 18px 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 14px; color: var(--text-2); line-height: 1.4; }
.plan li svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--lime-deep); margin-top: 1px; }
.badge-top { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--lime); color: #16151D; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; padding: 5px 13px; border-radius: 999px; text-transform: uppercase; }

/* feature row (alternating) */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.frow + .frow { margin-top: clamp(56px, 8vw, 110px); }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 22px 4px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; background: none; border: none; cursor: pointer; color: var(--text); font-family: inherit; }
.faq-q .pm { margin-left: auto; flex: 0 0 auto; transition: transform .2s var(--ease); color: var(--muted); }
.faq-item.open .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s var(--ease); }
.faq-a-inner { padding: 0 4px 22px; color: var(--text-2); font-size: 15.5px; line-height: 1.65; max-width: 760px; }

/* footer */
.footer { background: var(--ink); color: rgba(255,255,255,0.6); padding: 64px 0 40px; }
.footer a { color: rgba(255,255,255,0.6); transition: color .14s; }
.footer a:hover { color: #fff; }
.footer .lime-link { color: var(--lime); font-weight: 600; }

/* mockup window */
.win { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-xl); overflow: hidden; border: 1px solid var(--line); }
.win-bar { height: 38px; background: var(--surface-2); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.win-dot { width: 11px; height: 11px; border-radius: 50%; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* glow */
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; pointer-events: none; z-index: 0; }

/* divider strip */
.trust { display: flex; align-items: center; justify-content: center; gap: clamp(24px,5vw,56px); flex-wrap: wrap; opacity: 0.75; }
.trust span { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: var(--muted); }

/* mobile menu */
.mobile-menu { display: none; }

@media (max-width: 920px) {
  .grid-3, .grid-4, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .frow { grid-template-columns: 1fr; }
  .frow.rev .frow-media { order: -1; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta .btn--ghost { display: none; }
  .menu-btn { display: flex; }
  .grid-2, .grid-3, .grid-4, .price-grid { grid-template-columns: 1fr; }
  .plan--feat { order: -1; }
  .mobile-menu.open { display: block; position: fixed; inset: 72px 0 0; background: var(--bg); z-index: 49; padding: 24px; animation: mm .2s var(--ease); }
  .mobile-menu.open a { display: block; font-size: 19px; font-weight: 700; padding: 16px 8px; border-bottom: 1px solid var(--line); }
  .mobile-menu.open .btn { margin-top: 20px; width: 100%; }
}
@keyframes mm { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
