/* Table360 marketing site — shared styles (home, discoteche, ristoranti, prezzi)
   Black, white and greys with soft grainy gradients in orange / red / sand, glass capsules,
   large rounded cards and two-tone headlines (muted grey + white). Inter (display optical size). */
:root {
  color-scheme: dark;
  --black: #000000; --black-2: #070707; --black-deep: #000000; --white: #f9f9f9; --smoke: #f4f4f5;
  --gray-l: #a7a7a7; --gray: #646464; --gray-d: #333333;
  --orange: #f16001; --orange-2: #e85002; --red: #c10801; --sand: #d9c3ab; --peach: #ffb957; --coral: #ff8c40;
  --brand: var(--orange); --brand-btn: var(--orange); --brand-text: var(--coral); --brand-soft: rgba(241, 96, 1, .14);
  --bg: var(--black); --surface: #0f0f0f; --surface-2: #181818; --surface-3: #222222;
  --line: rgba(249, 249, 249, .08); --line-2: rgba(249, 249, 249, .15);
  --text: var(--white); --muted: var(--gray-l); --dim: #8c8c8c; --head-muted: rgba(249, 249, 249, .5); --hi: var(--white);
  --field: rgba(249, 249, 249, .05); --glass: rgba(24, 24, 24, .55);
  --btn: var(--white); --btn-ink: #000000;
  --grain: url("grain.png");
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --display: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 40px 90px -40px rgba(0, 0, 0, .9);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-optical-sizing: auto; color: var(--text); background: var(--grain), var(--black);
  -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.55; letter-spacing: -.005em; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--orange); color: #000; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) { .br-desk { display: none; } }
[id] { scroll-margin-top: 96px; }

/* ---------- soft light between sections (feathered, no edges or lines) ---------- */
.fx-glow, .fx-lift { isolation: isolate; }
.fx-glow::before, .fx-lift::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 200px, #000 calc(100% - 200px), transparent);
          mask-image: linear-gradient(180deg, transparent, #000 200px, #000 calc(100% - 200px), transparent); }
.fx-glow::before { background:
  radial-gradient(640px 460px at 96% 38%, rgba(241, 96, 1, .22), transparent 70%),
  radial-gradient(520px 420px at 102% 62%, rgba(193, 8, 1, .18), transparent 70%),
  radial-gradient(620px 460px at 0% 72%, rgba(217, 195, 171, .07), transparent 70%); }
.fx-lift::before { background:
  radial-gradient(900px 420px at 50% 50%, rgba(241, 96, 1, .08), transparent 70%),
  linear-gradient(rgba(249, 249, 249, .022), rgba(249, 249, 249, .022)); }
.s4sec.fx-lift::before { background: linear-gradient(rgba(249, 249, 249, .018), rgba(249, 249, 249, .018)); }
.s4stick { background:
  radial-gradient(700px 360px at 0% 100%, rgba(241, 96, 1, .16), transparent 70%),
  radial-gradient(520px 340px at 100% 72%, rgba(193, 8, 1, .12), transparent 70%); }

/* ---------- nav: floating glass capsule ---------- */
nav { position: sticky; top: 12px; z-index: 40; margin-top: 12px; }
nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; padding: 0 8px 0 22px; border-radius: 999px;
  background: rgba(16, 16, 16, .55); border: 1px solid var(--line); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: background .3s, border-color .3s, box-shadow .3s; }
nav.is-scrolled .wrap { background: rgba(12, 12, 12, .78); border-color: var(--line-2); box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .9); }
.word { display: inline-flex; align-items: center; gap: 0; font-family: "Mona Sans", var(--display); font-weight: 600; font-stretch: 115%; font-size: 20px; letter-spacing: -.02em; text-decoration: none; color: var(--white); }
.word__mark { width: 30px; height: 30px; margin-right: 10px; fill: currentColor; flex: none; transition: transform .6s var(--ease); }
.word:hover .word__mark { transform: rotate(-12deg); }
.word span { color: rgba(249, 249, 249, .5); }
nav ul { display: flex; gap: 26px; list-style: none; margin-left: auto; font-size: 14px; font-weight: 500; color: var(--muted); }
nav ul a { text-decoration: none; transition: color .2s; }
nav ul a:hover, nav ul a[aria-current="page"] { color: var(--white); }
nav ul a[aria-current="page"] { box-shadow: 0 2px 0 var(--orange); }
nav .btn { height: 44px; padding: 0 20px; font-size: 14px; }
@media (max-width: 860px) { nav ul { display: none; } nav .btn { margin-left: auto; height: 40px; padding: 0 16px; } nav .wrap { height: 56px; padding-left: 18px; } }
/* phones: menu button + panel with the page links */
.nav__menu, .nav__panel { display: none; }
@media (max-width: 860px) {
  nav .wrap { position: relative; gap: 10px; padding-right: 8px; }
  nav .btn { padding: 0 15px; font-size: 13.5px; }
  .nav__menu { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(249, 249, 249, .06); color: var(--white); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .nav__menu path { transition: transform .3s var(--ease); transform-origin: 12px 12px; }
  nav.is-menu .nav__menu .l1 { transform: translateY(4px) rotate(45deg); }
  nav.is-menu .nav__menu .l2 { transform: translateY(-4px) rotate(-45deg); }
  .nav__panel { display: grid; gap: 2px; position: absolute; left: 0; right: 0; top: calc(100% + 8px); padding: 8px; border-radius: 26px; background: #0e0e0e; border: 1px solid var(--line-2);
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; }
  nav.is-menu .nav__panel { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  .nav__panel a { display: flex; align-items: center; height: 54px; padding: 0 18px; border-radius: 18px; color: var(--text); font-size: 17px; font-weight: 500; text-decoration: none; }
  .nav__panel a:active { background: rgba(249, 249, 249, .06); }
  .nav__panel a[aria-current="page"] { background: rgba(249, 249, 249, .07); }
  .nav__panel a[aria-current="page"]::after { content: ""; width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: var(--orange); }
}
@media (max-width: 380px) { nav .word { font-size: 18px; } nav .word__mark { width: 28px; height: 28px; margin-right: 8px; } nav .btn { padding: 0 13px; } }
@media (max-width: 340px) { nav .word { font-size: 0; } nav .word__mark { margin-right: 0; } }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--btn); color: var(--btn-ink); font: 600 15px/1 var(--font); letter-spacing: -.01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .3s, background .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 40px -12px rgba(241, 96, 1, .7); }
.btn:active { transform: scale(.98); }
.btn--ghost { background: rgba(249, 249, 249, .05); color: var(--text); border-color: var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--ghost:hover { background: rgba(249, 249, 249, .1); box-shadow: none; }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ---------- sections & type ---------- */
section { position: relative; padding: 120px 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text); }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.045em; color: var(--text); }
h1:has(em), h2:has(em) { color: var(--head-muted); }
h1 em, h2 em { font-style: normal; color: var(--hi); }
h2 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1; margin: 16px 0 20px; max-width: 920px; text-wrap: balance; }
.h2--line { max-width: none; }   /* a heading meant to sit on one line wherever it fits (tablet and up) */
h3 { font-weight: 600; letter-spacing: -.02em; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; }
.lead--wide { max-width: 700px; }

/* ---------- reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); filter: blur(4px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }

/* ---------- hero: a warm sun of light behind the title ---------- */
.hero { position: relative; padding: 110px 0 90px; text-align: center; isolation: isolate; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; left: 50%; z-index: -1; pointer-events: none; border-radius: 50%; }
.hero::before { top: 52%; width: 1100px; height: 560px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(241, 96, 1, .62), rgba(193, 8, 1, .32) 50%, rgba(193, 8, 1, 0) 100%); filter: blur(30px); animation: sun 16s ease-in-out infinite alternate; }
.hero::after { top: 64%; width: 520px; height: 300px; transform: translate(-30%, -50%);
  background: radial-gradient(closest-side, rgba(255, 185, 87, .38), rgba(217, 195, 171, 0)); filter: blur(24px); animation: sun2 12s ease-in-out infinite alternate; }
@keyframes sun { from { transform: translate(-50%, -50%) scale(1); } to { transform: translate(-46%, -54%) scale(1.08); } }
@keyframes sun2 { from { transform: translate(-30%, -50%); } to { transform: translate(-70%, -44%) scale(1.15); } }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; color: #d4d4d4;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pill b { padding: 3px 10px; border-radius: 999px; background: var(--orange); color: #000; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.hero h1 { font-size: clamp(44px, 7.6vw, 104px); line-height: .96; letter-spacing: -.055em; margin: 26px auto 26px; max-width: 1080px; text-wrap: balance; }
.hero h1:has(em) { color: rgba(249, 249, 249, .55); }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.4em); filter: blur(8px); animation: wordIn 1.1s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }
.hero .sub { max-width: 860px; margin: 0 auto; font-size: clamp(17px, 2vw, 19.5px); color: #d9d9d9; opacity: 0; animation: fadeUp 1s var(--ease) .7s forwards; }
.hero .pill, .hero .kicker { opacity: 0; animation: fadeUp .9s var(--ease) .05s forwards; }
.hero .trust, .hero .hero__cta { opacity: 0; animation: fadeUp 1s var(--ease) .95s forwards; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- home intro: only the title on the first screen; site.js opens the hero (.is-open) 1.5 s after it lands, or at the first scroll ---------- */
.hero--intro { height: 100vh; height: 100svh; padding: 76px 0 24px; display: flex; align-items: center; }
.hero--intro > .wrap { position: relative; transform: translateY(var(--shift, 0px)); transition: transform 1.1s var(--ease); }
.hero--intro .sub, .hero--intro .trust { animation: none; opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.hero--intro h1 { margin-top: 0; }
.hero--intro.is-open > .wrap { transform: none; }
.hero--intro.is-open .sub { opacity: 1; transform: none; transition-delay: .2s; }
.hero--intro.is-open .trust { opacity: 1; transform: none; transition-delay: .38s; }
/* opening: the round logo draws itself while the sun rises, then dissolves and the title arrives word by word */
.hero--intro::before { animation: sun 16s ease-in-out infinite alternate, glowIn 1.8s ease-out both; }
.hero--intro::after { animation: sun2 12s ease-in-out infinite alternate, glowIn 1.8s ease-out .3s both; }
.intro__logo { position: absolute; left: 50%; top: 50%; width: clamp(96px, 10vw, 140px); aspect-ratio: 1; translate: -50% -50%; color: var(--white); pointer-events: none;
  animation: logoOut .65s var(--ease) 1.75s forwards; }
.intro__logo svg { display: block; width: 100%; height: 100%; overflow: visible; }
.intro__ring { fill: none; stroke: currentColor; stroke-width: 34.5; stroke-dasharray: 1873; stroke-dashoffset: 1873; animation: ringDraw 1.05s cubic-bezier(.65, 0, .35, 1) .15s forwards; }
.intro__mono { fill: currentColor; opacity: 0; transform-box: fill-box; transform-origin: center; animation: monoIn .6s var(--ease) .8s forwards; }
.hero--intro h1 .w { animation-delay: calc(var(--i) * 70ms + 2s); }
.hero--intro.is-skip .intro__logo { animation: none; opacity: 0; }
.hero--intro.is-skip h1 .w { animation-delay: calc(var(--i) * 50ms); }
@keyframes glowIn { from { opacity: 0; } }
@keyframes ringDraw { to { stroke-dashoffset: 0; } }
@keyframes monoIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes logoOut { to { opacity: 0; scale: 1.12; filter: blur(10px); visibility: hidden; } }
nav.nav--over { position: fixed; left: 0; right: 0; top: 12px; margin: 0; transition: opacity .6s var(--ease), transform .6s var(--ease); }
nav.is-intro:not(:focus-within) { opacity: 0; transform: translateY(-14px); pointer-events: none; }
/* back on the home from inside the site: no logo, no wait, same quick entrance as the other pages */
.intro-done .intro__logo { display: none; }
.intro-done .hero--intro::before { animation: sun 16s ease-in-out infinite alternate; }
.intro-done .hero--intro::after { animation: sun2 12s ease-in-out infinite alternate; }
.intro-done .hero--intro > .wrap { transform: none; transition: none; }
.intro-done .hero--intro h1 .w { animation-delay: calc(var(--i) * 70ms + 120ms); }
.intro-done .hero--intro .sub { opacity: 1; transform: none; transition: none; animation: fadeUp 1s var(--ease) .6s both; }
.intro-done .hero--intro .trust { opacity: 1; transform: none; transition: none; animation: fadeUp 1s var(--ease) .8s both; }
.intro-done nav.is-intro:not(:focus-within) { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- trust strip: glass capsules ---------- */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 34px; font-size: 13.5px; font-weight: 500; color: #e2e2e2; }
.trust span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.trust svg { color: var(--coral); flex: none; }

/* ---------- live demo + configurator ---------- */
.showcase { position: relative; padding: 10px 0 120px; perspective: 1600px; }
.browser { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-2); background: #0a0a0a; transform-origin: 50% 0; will-change: transform;
  box-shadow: 0 60px 140px -50px rgba(0, 0, 0, 1), 0 0 0 8px rgba(249, 249, 249, .03), 0 30px 160px -40px rgba(241, 96, 1, .5); }
.browser__bar { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 16px; background: #141414; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(249, 249, 249, .16); }
.url { flex: 1; max-width: 420px; margin: 0 auto; height: 28px; border-radius: 999px; background: rgba(249, 249, 249, .06); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.browser [data-table360-inline] iframe { border-radius: 0 !important; box-shadow: none !important; }
.showcase__note { margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--dim); }
.config { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 20px; padding: 22px 24px; margin-top: 18px; border-radius: 28px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.config__intro { flex: 1 1 100%; }
.config__intro b { font-size: 19px; font-weight: 600; letter-spacing: -.03em; }
.config__field label { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.picker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.hexin { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 999px; background: var(--field); border: 1px solid var(--line-2); transition: border-color .15s; }
.hexin:focus-within { border-color: var(--orange); }
.hexin.is-err { border-color: #ff6b5e; }
.hexin__dot { flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(249, 249, 249, .3); }
.config .hexin input[type="text"], .config .hexin input[type="text"]:focus { width: 170px; height: auto; padding: 0; border: 0; border-radius: 0; background: none; color: var(--text); font: 600 15px var(--font); outline: none; }
.config .hexin input[type="text"]::placeholder { color: var(--dim); font-weight: 500; }
.shades { display: flex; gap: 6px; }
.shade { width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(249, 249, 249, .2); transition: box-shadow .15s, transform .15s; }
.shade:hover { transform: translateY(-1px); }
.shade[aria-pressed="true"] { box-shadow: 0 0 0 2px #111, 0 0 0 4px var(--white); }
.config input[type="text"] { width: 170px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--field); border: 1px solid var(--line-2); color: var(--text); font: 500 15px var(--font); outline: none; }
.config input[type="text"]:focus { border-color: var(--orange); }
.config [hidden] { display: none; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--field); border: 1px solid var(--line-2); }
.seg button { height: 34px; padding: 0 15px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font: 600 13.5px var(--font); cursor: pointer; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--white); color: #000; }

/* ---------- doors (home) ---------- */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.door { position: relative; display: flex; flex-direction: column; border-radius: 32px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; isolation: isolate; transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease); }
.door::after { content: ""; position: absolute; right: -140px; bottom: -160px; width: 420px; height: 360px; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(241, 96, 1, .38), rgba(193, 8, 1, 0)); filter: blur(20px); opacity: .55; transition: opacity .5s, transform .6s var(--ease); }
.door:hover { transform: translateY(-4px); border-color: rgba(241, 96, 1, .45); box-shadow: 0 40px 100px -40px rgba(241, 96, 1, .45); }
.door:hover::after { opacity: 1; transform: translate(-30px, -30px) scale(1.1); }
.door__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.door__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15, 15, 15, .9)); }
.door__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.door:hover .door__img img { transform: scale(1.05); }
.door__badge { position: absolute; z-index: 1; left: 18px; top: 18px; padding: 7px 13px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-2); color: var(--white); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.door__body { padding: 22px 30px 32px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.door__body h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; letter-spacing: -.045em; line-height: 1.05; }
.door__body p { color: var(--muted); }
.door__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.door__chips span { padding: 6px 12px; border-radius: 999px; background: var(--field); border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: #cfcfcf; }
.door__go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--white); }
.door__go svg { color: var(--coral); transition: transform .25s var(--ease); }
.door:hover .door__go svg { transform: translateX(4px); }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } }

/* ---------- cards ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 52px; }
/* light cards, same family as the pricing teaser: smoke white, a warm blur in the corner, black icon discs */
.card { position: relative; overflow: hidden; padding: 30px; border-radius: 28px;
  --text: #000000; --muted: #4d4d4d; --line: rgba(0, 0, 0, .07); --line-2: rgba(0, 0, 0, .14);
  color: var(--text); background: radial-gradient(300px 240px at 104% 108%, rgba(241, 96, 1, .3), rgba(255, 185, 87, .16) 45%, rgba(244, 244, 245, 0) 72%), var(--smoke);
  border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s; }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(241, 96, 1, .16), rgba(255, 185, 87, .08) 40%, transparent 65%); }
.card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card__ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 24px; border-radius: 50%; background: #000000; color: var(--coral); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid3 { grid-template-columns: 1fr; } }

/* ---------- checklist ---------- */
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------- 4 steps, driven by scroll ---------- */
.s4sec { position: relative; height: 430vh; padding: 0; }
.s4stick { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 104px 0 30px; overflow: hidden; }
.s4wrap { height: 100%; display: flex; flex-direction: column; gap: 22px; }
.s4head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.s4head h2 { margin: 12px 0 0; }
.s4count { font-weight: 500; font-size: clamp(40px, 5vw, 76px); line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; white-space: nowrap;
  background: linear-gradient(120deg, var(--peach), var(--orange) 50%, var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s4count small { font-size: .42em; color: var(--dim); -webkit-text-fill-color: var(--dim); letter-spacing: 0; }
.s4rail { position: relative; height: 2px; border-radius: 2px; background: var(--line); }
.s4rail i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--orange), var(--peach)); box-shadow: 0 0 16px rgba(241, 96, 1, .7); }
/* the steps are as big as the cards above (two per row): a horizontal track that site.js slides one step at a time */
.s4track { flex: 1; min-height: 0; display: flex; gap: 16px; will-change: transform; }   /* moved by site.js, frame by frame */
.s4 { --k: 0; position: relative; flex: none; width: calc((100% - 16px) / 2); min-width: 0; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; background: #0e0e0e; border: 1px solid var(--line);
  opacity: calc(.45 + .55 * var(--k)); transform: translateY(calc((1 - var(--k)) * 18px)); transition: border-color .4s, box-shadow .4s; }
.s4.is-on { border-color: rgba(241, 96, 1, .55); box-shadow: 0 30px 80px -34px rgba(0, 0, 0, .9), 0 0 80px -30px rgba(241, 96, 1, .55); }
.s4__vis { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--black-2); }
.s4__txt { padding: 22px 30px 30px; }
.s4__n { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 10px; border-radius: 50%; border: 1px solid var(--line-2); font-weight: 600; font-size: 13px; color: var(--muted); transition: background .3s, color .3s, border-color .3s; }
.s4.is-on .s4__n, .s4.is-done .s4__n { background: var(--orange); border-color: var(--orange); color: #000; }
.s4__txt h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -.04em; line-height: 1.1; margin-bottom: 8px; }
.s4__txt p { color: var(--muted); font-size: 15px; }
.chipx { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(12, 12, 12, .6); color: #fff; border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 12.5px; font-weight: 600; white-space: nowrap; opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.chipx.on { opacity: 1; transform: none; }
.chipx b { color: var(--coral); }
.v1 { position: absolute; inset: 0; background: url("../app/pano/belvedere/sala-v1-preview.jpg") 0 50% / auto 100% repeat-x; background-position-x: calc(var(--k) * -520px); }
.v1::after { content: ""; position: absolute; inset: 14px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 16px;
  -webkit-mask: linear-gradient(#000 0 0) top left / 26px 26px no-repeat, linear-gradient(#000 0 0) top right / 26px 26px no-repeat, linear-gradient(#000 0 0) bottom left / 26px 26px no-repeat, linear-gradient(#000 0 0) bottom right / 26px 26px no-repeat;
          mask: linear-gradient(#000 0 0) top left / 26px 26px no-repeat, linear-gradient(#000 0 0) top right / 26px 26px no-repeat, linear-gradient(#000 0 0) bottom left / 26px 26px no-repeat, linear-gradient(#000 0 0) bottom right / 26px 26px no-repeat; }
.rec { position: absolute; left: 24px; top: 24px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; }
.rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.v2 { position: absolute; inset: 0; background: url("../app/pano/prive-v2-preview.jpg") 50% 60% / cover; transform: scale(calc(1.12 - var(--k) * .12)); }
.pinx { position: absolute; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -100%) scale(.3); opacity: 0; transition: transform .45s var(--ease), opacity .3s; }
.pinx.on { transform: translate(-50%, -100%) scale(1); opacity: 1; }
.pinx span { padding: 6px 11px; border-radius: 999px; background: #fff; color: #000; font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 20px rgba(0, 0, 0, .45); }
.pinx small { font-weight: 500; opacity: .75; }
.pinx i { width: 2px; height: 12px; background: rgba(255, 255, 255, .8); }
.pinx em { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(241, 96, 1, .35), 0 0 14px rgba(241, 96, 1, .8); }
.v3 { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px;
  background: radial-gradient(circle at 75% 15%, rgba(255, 185, 87, .35), transparent 45%), radial-gradient(circle at 30% 90%, rgba(193, 8, 1, .45), transparent 55%), radial-gradient(circle at 60% 55%, rgba(241, 96, 1, .5), transparent 60%), #0b0b0b; }
.acct { width: 100%; max-width: 340px; padding: 16px; border-radius: 22px; background: rgba(249, 249, 249, .96); color: #000; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.acct__top { display: flex; align-items: center; gap: 10px; }
.acct__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fdeee4; color: var(--orange-2); }
.acct__top b { display: block; font-size: 14px; font-weight: 600; }
.acct__top span { font-size: 12px; color: #4d4d4d; }
.sw { margin-left: auto; width: 42px; height: 24px; border-radius: 999px; background: #d4d4d4; position: relative; transition: background .3s; flex: none; }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.acct.on .sw { background: var(--orange); }
.acct.on .sw::after { transform: translateX(18px); }
.pay { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid rgba(0, 0, 0, .08); font-size: 13px; opacity: 0; transform: translateX(-10px); transition: opacity .35s, transform .35s var(--ease); }
.pay:first-of-type { margin-top: 12px; }
.pay.on { opacity: 1; transform: none; }
.pay b { color: #000; }
.acct__fee { margin-top: 8px; padding: 8px 12px; border-radius: 999px; background: #000; color: #f9f9f9; font-size: 12.5px; font-weight: 600; opacity: 0; transition: opacity .35s; }
.acct__fee.on { opacity: 1; }
.v4 { position: absolute; inset: 0; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: radial-gradient(circle at 15% 0%, rgba(241, 96, 1, .3), transparent 55%), #0b0b0b; }
.mini { position: relative; flex: 1; min-height: 0; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .18); background: #fff; }
.mini__bar { display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; background: #efefef; }
.mini__bar i { width: 7px; height: 7px; border-radius: 50%; background: #cfcfcf; }
.mini__bar span { margin-left: 8px; font-size: 10px; color: #4d4d4d; font-weight: 600; }
.mini__hero { margin: 12px; height: calc(100% - 48px); border-radius: 12px; background: linear-gradient(0deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .05)), url("doors/restaurant.jpg") center / cover; display: flex; align-items: flex-end; padding: 12px; }
.mini__hero b { color: #fff; font-size: clamp(15px, 1.5vw, 22px); font-weight: 600; letter-spacing: .02em; }
.mini__fab { position: absolute; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 5px; border-radius: 999px; background: #000; color: #fff; font-size: 11.5px; font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(10px) scale(.9); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.mini__fab span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: #000; font-size: 8px; font-weight: 700; }
.mini__fab.on { opacity: 1; transform: none; }
.codeline { flex: none; min-height: 40px; padding: 10px 14px; border-radius: 14px; background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .12); font: 500 12px/1.5 ui-monospace, "SF Mono", Menlo, monospace; color: #e9e9e9; white-space: pre-wrap; word-break: break-all; }
.codeline .t { color: var(--coral); } .codeline .a { color: #bdbdbd; } .codeline .s { color: #ffffff; }
.caret { display: inline-block; width: 7px; height: 14px; margin-left: 1px; vertical-align: -2px; background: var(--orange); animation: blink 1s steps(2) infinite; }
@media (max-width: 900px) {
  .s4sec { height: 380vh; }
  .s4stick { padding: 92px 0 22px; }
  .s4wrap { width: 100%; gap: 16px; }
  .s4head, .s4rail { margin: 0 16px; }
  .s4head h2 { font-size: 30px; }
  .s4track { display: flex; gap: 12px; padding: 0 16px; width: max-content; }
  .s4 { width: 80vw; }
  .v1 { background-position-x: calc(var(--k) * -360px); }
}

/* ---------- integration code ---------- */
.install { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin-top: 48px; }
.install > * { min-width: 0; }
@media (max-width: 900px) { .install { grid-template-columns: 1fr; } }
.code { position: relative; border-radius: 24px; background: #0a0a0a; border: 1px solid var(--line-2); overflow: hidden; box-shadow: var(--shadow); }
.code__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); font-weight: 500; }
pre { margin: 0; padding: 18px 18px 22px; overflow-x: auto; font: 500 13.5px/1.7 ui-monospace, "SF Mono", Menlo, monospace; color: #ededed; }
pre .t { color: var(--coral); } pre .a { color: #bdbdbd; } pre .s { color: #ffffff; } pre .c { color: #8c8c8c; }
.code--locked pre { filter: blur(6px); opacity: .75; user-select: none; pointer-events: none; }
.code__lock { position: absolute; left: 50%; top: calc(50% + 26px); transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px;
  border-radius: 999px; background: var(--white); color: #000; font-size: 13.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.platforms span { padding: 6px 13px; border-radius: 999px; background: var(--field); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: #cfcfcf; }

/* ---------- pricing teaser: light card with a warm blur ---------- */
.price { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; padding: 56px; border-radius: 36px;
  --text: #000000; --muted: #4d4d4d; --dim: #646464; --head-muted: rgba(0, 0, 0, .45); --hi: #000000; --brand-text: #b33a00; --line: rgba(0, 0, 0, .09); --btn: #000000; --btn-ink: #f9f9f9;
  color: var(--text); background: var(--smoke); }
.price::before { content: ""; position: absolute; z-index: -1; right: -10%; bottom: -55%; width: 75%; height: 120%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(241, 96, 1, .75), rgba(255, 185, 87, .45) 45%, rgba(244, 244, 245, 0)); filter: blur(40px); }
.price::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--grain); opacity: .6; }
.price .checks li::before { background-color: #000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8c40' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E"); }
.price h2 { margin-bottom: 12px; }
.price .btn { margin-top: 26px; }
@media (max-width: 860px) { .price { grid-template-columns: 1fr; padding: 32px; border-radius: 28px; } .price::before { width: 140%; right: -40%; bottom: -30%; height: 70%; } }

/* ---------- faq ---------- */
.faq { margin-top: 44px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 26px 0; cursor: pointer; list-style: none; font-weight: 500; font-size: 18px; letter-spacing: -.02em; transition: color .2s; }
summary:hover, details[open] summary { color: var(--white); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--field); border: 1px solid var(--line-2); font-size: 20px; font-weight: 400; color: var(--text); transition: transform .3s var(--ease), background .2s, color .2s; }
summary:hover::after { background: var(--orange); color: #000; border-color: transparent; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 48px 26px 0; color: var(--muted); max-width: 780px; }
.faq--wide details p { max-width: none; }   /* home: short answers, each on one line */

/* ---------- final CTA: the sun rises behind the last words ---------- */
.final { overflow: hidden; text-align: center; padding: 170px 0 190px; isolation: isolate; }
.final::before { content: ""; position: absolute; left: 50%; bottom: -200px; width: 1300px; height: 820px; transform: translateX(-50%); z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 185, 87, .55), rgba(241, 96, 1, .55) 35%, rgba(193, 8, 1, .3) 65%, rgba(193, 8, 1, 0)); filter: blur(30px);
  -webkit-mask-image: linear-gradient(180deg, #000 38%, transparent 74%); mask-image: linear-gradient(180deg, #000 38%, transparent 74%); animation: glowDrift 14s ease-in-out infinite alternate; }
.final::after { content: ""; position: absolute; left: 50%; bottom: -60px; width: 640px; height: 420px; transform: translateX(-95%); z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 185, 87, .42), rgba(255, 185, 87, 0)); filter: blur(28px); animation: glowWander 11s ease-in-out infinite alternate; }
@keyframes glowDrift { from { transform: translateX(-50%) scale(1); } to { transform: translate(-43%, -50px) scale(1.12); } }
@keyframes glowWander { from { transform: translateX(-95%); } to { transform: translate(-5%, -70px) scale(1.2); } }
.final h2 { margin: 18px auto 18px; font-size: clamp(40px, 6.4vw, 88px); max-width: 1040px; }
.final h2:has(em) { color: rgba(249, 249, 249, .55); }
.final .lead { margin: 0 auto; color: #dcdcdc; }
.final__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 34px; }

/* ---------- request-info form, inside the light card (come-funziona, prezzi, verticals) ---------- */
.ask { align-items: start; }
.ask h2 { margin-top: 14px; }
.ask__demo { margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.ask__demo a { color: #000; font-weight: 600; }
.form { display: grid; gap: 14px; }
.form[hidden], .sent[hidden], .form__err[hidden] { display: none; }
.form__note a { color: inherit; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field > span, .form legend { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: #000; }
.field input { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(0, 0, 0, .12); background: #fff; color: #000; font: 500 16px var(--font); outline: none; transition: border-color .2s, box-shadow .2s; }
.field input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(241, 96, 1, .15); }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: flex; align-items: center; justify-content: center; height: 52px; border-radius: 14px; border: 1px solid rgba(0, 0, 0, .12); background: #fff; color: #000; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.choice input:checked + label { background: #000; border-color: #000; color: #f9f9f9; }
.choice input:focus-visible + label { outline: 2px solid var(--orange); outline-offset: 2px; }
.form .btn { width: 100%; margin-top: 4px; }
.form .btn[disabled] { opacity: .6; pointer-events: none; }
.form__note { font-size: 12.5px; color: #646464; text-align: center; }
.form__err { font-size: 13.5px; font-weight: 600; color: #b33a00; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { padding: 34px 28px; border-radius: 24px; background: #fff; text-align: center; }
.sent b { display: block; font-size: 24px; font-weight: 500; letter-spacing: -.03em; margin-bottom: 6px; }
.sent p { color: #4d4d4d; }
@media (max-width: 480px) { .form__row { grid-template-columns: 1fr; } }

.final__more { margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.final__more a { color: var(--white); font-weight: 600; text-underline-offset: 3px; }

/* ---------- footer: brand, site map, legal ---------- */
.foot { position: relative; overflow: hidden; padding: 76px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.foot a { color: inherit; text-decoration: none; transition: color .2s; }
.foot a:hover { color: var(--white); }
.foot > .wrap { container-type: inline-size; }
.foot__top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; }
.foot .word { color: var(--white); }
.foot__brand p { margin-top: 18px; max-width: 330px; line-height: 1.55; }
.foot .foot__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--white); font-weight: 600; }
.foot__cta svg { color: var(--coral); transition: transform .25s var(--ease); }
.foot__cta:hover svg { transform: translateX(4px); }
.foot__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.foot__col h4 { margin-bottom: 18px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.foot__col ul { list-style: none; display: grid; gap: 12px; }
.foot__big { margin: 72px 0 -.06em; font-family: "Mona Sans", var(--display); font-weight: 600; font-stretch: 115%; font-size: clamp(60px, 16.5vw, 236px); font-size: 21.6cqw; line-height: .9;
  letter-spacing: -.04em; text-align: center; white-space: nowrap; user-select: none; color: transparent;
  background: linear-gradient(180deg, rgba(249, 249, 249, .13), rgba(249, 249, 249, 0) 88%); -webkit-background-clip: text; background-clip: text; }
.foot__big span { background: linear-gradient(180deg, rgba(241, 96, 1, .42), rgba(241, 96, 1, 0) 88%); -webkit-background-clip: text; background-clip: text; }
.foot__bottom { position: relative; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
@media (max-width: 900px) { .foot__top { grid-template-columns: 1fr; gap: 44px; } }
@media (max-width: 560px) { .foot { padding-top: 60px; } .foot__nav { grid-template-columns: 1fr 1fr; gap: 36px 20px; } .foot__bottom { flex-direction: column; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .rec::before, .caret, .hero::before, .hero::after, .final::before, .final::after { animation: none; }
  .hero h1 .w, .hero .sub, .hero .pill, .hero .kicker, .hero .trust, .hero .hero__cta { opacity: 1; animation: none; transform: none; filter: none; }
  .hero--intro { position: relative; height: auto; display: block; padding: 150px 0 90px; }
  .intro__logo { display: none; }
  nav.is-intro:not(:focus-within) { opacity: 1; transform: none; pointer-events: auto; }
  .s4sec { height: auto; }
  .s4stick { position: static; height: auto; }
  .s4track { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; width: auto; transform: none !important; }
  .s4 { width: auto; min-height: 520px; opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 900px) { .s4track { grid-template-columns: 1fr; } .s4 { min-height: 440px; } }

/* home: three cards on one row, stacked below tablet width */
@media (max-width: 900px) { .grid3--row { grid-template-columns: 1fr; } }

/* ======================================================================
   phones: shorter vertical rhythm, swipeable steps, compact cards, the demo as a card that opens full screen
   ====================================================================== */
@media (max-width: 760px) {
  section { padding: 76px 0; }
  .final { padding: 110px 0 120px; }
  .grid3, .doors, .install { margin-top: 32px; }
  .lead { font-size: 16.5px; }

  /* four steps (home): the page scroll slides the cards sideways, one at a time, so nobody skips them */
  .s4sec { height: 500vh; }
  .s4stick { padding: 84px 0 18px; }
  .s4wrap { gap: 14px; }
  .s4track { touch-action: pan-y; }
  .s4 { width: 84vw; }
  .s4__txt { padding: 16px 20px 20px; }
  .s4count { font-size: 40px; }

  /* light cards: icon next to the title, less padding */
  .card { display: grid; grid-template-columns: 40px 1fr; align-items: center; column-gap: 14px; padding: 20px; border-radius: 22px; }
  .card__ic { width: 40px; height: 40px; margin: 0; }
  .card__ic svg { width: 19px; height: 19px; }
  .card h3 { margin: 0; font-size: 17px; line-height: 1.25; }
  .card p { grid-column: 1 / -1; margin-top: 10px; }
  .card:hover { transform: none; }

  /* demo: no fake browser around it, no tilt; the widget shows a card that opens the tour full screen */
  .showcase { padding-bottom: 64px; perspective: none; }
  .browser { border: 0; border-radius: 22px; background: none; transform: none !important; box-shadow: 0 30px 80px -36px rgba(241, 96, 1, .6); }
  .browser__bar { display: none; }
  .config { padding: 18px; gap: 16px; border-radius: 22px; }
  .config__field { flex: 1 1 100%; }
  .config .hexin { flex: 1 1 100%; }
  .config .hexin input[type="text"], .config .hexin input[type="text"]:focus { width: 100%; font-size: 16px; }
  .config input[type="text"] { width: 100%; height: 44px; font-size: 16px; }
  .shade { width: 34px; height: 34px; }
  .seg { display: flex; }
  .seg button { flex: 1; height: 40px; }

  /* code samples wrap instead of scrolling sideways */
  pre { white-space: pre-wrap; word-break: break-word; font-size: 12.5px; }
  .code__lock { font-size: 13px; padding: 10px 15px; }
  .platforms span { font-size: 12.5px; }
}

/* phones: smooth scrolling and clean corners
   - no blur filters on the big lights (iPhone redraws them while scrolling and stops clipping them to rounded corners)
   - reveals with opacity and a short slide only, a little before they enter the screen
   - solid nav instead of the glass blur */
@media (max-width: 760px) {
  [data-reveal] { filter: none; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
  .hero::before, .hero::after, .final::before, .final::after, .door::after, .price::before { filter: none; }
  .hero::before, .hero::after { animation: none; }
  .door, .price, .plan, .s4 { -webkit-mask-image: -webkit-radial-gradient(white, black); }
  .door:hover, .door:hover::after, .door:hover .door__img img { transform: none; }
  nav .wrap, nav.is-scrolled .wrap { background: rgba(12, 12, 12, .92); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .btn--ghost, .trust span, .door__badge { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero h1 .w { filter: none; }
}

/* ---------- custom cursor (mouse and trackpad only; see site.js) ---------- */
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; z-index: 2147483600; pointer-events: none; opacity: 0; will-change: transform; }
.cur-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; mix-blend-mode: difference; transition: opacity .2s; }
.cur-ring { box-sizing: border-box; display: grid; place-items: center; border: 1.5px solid #fff; mix-blend-mode: difference;
  transition: opacity .25s, background-color .2s, border-color .2s, scale .2s var(--ease); }
.cur-ring span { font: 700 13px/1 var(--font); letter-spacing: .02em; color: #000; opacity: 0; transition: opacity .2s; white-space: nowrap; }
html.cur-on .cur-dot, html.cur-on .cur-ring { opacity: 1; }
html.cur-big .cur-ring { background: #fff; mix-blend-mode: normal; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
html.cur-big .cur-ring span { opacity: 1; }
html.cur-grow .cur-ring { background: rgba(255, 255, 255, .12); }
html.cur-text .cur-ring { background: #fff; border-width: 0; }
html.cur-big .cur-dot, html.cur-text .cur-dot { opacity: 0; }
html.cur-down .cur-ring { scale: .88; }
html.cur-hide .cur-dot, html.cur-hide .cur-ring { opacity: 0 !important; }
@media (hover: none), (pointer: coarse) { .cur-dot, .cur-ring { display: none; } }
