@font-face { font-family: "Geist"; src: url("fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* One palette (graphite + a single orange accent), dark by default, light when the system asks for it.
   Shape rule: containers 22px, inner pieces 14px, every interactive control is a pill. */
:root {
  --bg: #0e0f13;
  --surface: #16181f;
  --surface-2: #1c1f27;
  --line: rgba(255, 255, 255, .09);
  --text: #f1f2f5;
  --muted: #a3a8b4;
  --accent: #ff8a3d;
  --on-accent: #1b1008;
  --accent-soft: rgba(255, 138, 61, .14);
  --shadow: 0 40px 90px -36px rgba(0, 0, 0, .8);
  --r-lg: 22px;
  --r-md: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;

  /* The app's own surfaces (used by every .ui block on the page) */
  --p-bg: rgba(40, 42, 52, .56);
  --p-edge: rgba(255, 255, 255, .18);
  --p-card: rgba(255, 255, 255, .075);
  --p-text: #f5f6f9;
  --p-sub: rgba(245, 246, 249, .56);
  --p-line: rgba(255, 255, 255, .09);
  --p-track: rgba(255, 255, 255, .2);
  --p-pill: rgba(0, 0, 0, .3);
  --p-menu: rgba(44, 46, 56, .86);
  --p-tint: var(--accent);
  --stage-a: #15171f;
  --stage-b: #0a0b0f;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f6f9;
    --surface: #ffffff;
    --surface-2: #eceef3;
    --line: rgba(16, 18, 26, .1);
    --text: #14151a;
    --muted: #4f5462;
    --accent: #d9480f;
    --on-accent: #ffffff;
    --accent-soft: rgba(217, 72, 15, .1);
    --shadow: 0 40px 80px -40px rgba(30, 34, 50, .4);
    color-scheme: light;

    --p-bg: rgba(250, 251, 253, .6);
    --p-edge: rgba(255, 255, 255, .85);
    --p-card: rgba(255, 255, 255, .6);
    --p-text: #17181d;
    --p-sub: rgba(23, 24, 29, .56);
    --p-line: rgba(16, 18, 26, .09);
    --p-track: rgba(16, 18, 26, .16);
    --p-pill: rgba(16, 18, 26, .07);
    --p-menu: rgba(252, 252, 254, .9);
    --stage-a: #e9ecf3;
    --stage-b: #d9deea;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.55 "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.035em; line-height: 1.04; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 3rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 999px; }

/* Language switch: both versions live in the markup, one is shown. */
html[lang="it"] [data-l="en"], html[lang="en"] [data-l="it"] { display: none !important; }

.i { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  height: 3.25rem; padding: 0 1.6rem;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: var(--on-accent);
  font: 600 1rem/1 "Geist", sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface); }
.btn.small { height: 2.4rem; padding: 0 1.1rem; font-size: .9rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav .wrap { height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 600; letter-spacing: -.02em; text-decoration: none; font-size: 1.1rem; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-right { display: flex; align-items: center; gap: .75rem; }
.seg { display: inline-flex; gap: .15rem; }
.seg button { font: 600 .85rem/1 "Geist", sans-serif; color: var(--muted); background: none; border: 0; padding: .5rem .55rem; border-radius: 999px; cursor: pointer; transition: color .2s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Hero */
.hero { min-height: calc(100dvh - 4rem); display: grid; align-items: center; padding: 1.5rem 0 3rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 5.4vw, 4.9rem); }
.hero .sub { margin-top: 1.4rem; max-width: 30ch; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); }
.cta-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }

/* Sections */
section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.lead { margin-top: 1.1rem; max-width: 56ch; color: var(--muted); font-size: 1.15rem; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }

/* ===== The app's interface, rebuilt in HTML (.ui) ===== */
.ui { font-family: -apple-system, "SF Pro Text", "Geist", system-ui, sans-serif; color: var(--p-text); -webkit-font-smoothing: antialiased; line-height: 1.25; }
.ui .i { width: 1em; height: 1em; }
.ui button { font: inherit; color: inherit; }
.panel {
  width: 340px; padding: 12px; display: grid; gap: 10px;
  border-radius: 30px; background: var(--p-bg); border: 1px solid var(--p-edge);
  -webkit-backdrop-filter: blur(30px) saturate(190%); backdrop-filter: blur(30px) saturate(190%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 40px 70px -26px rgba(0, 0, 0, .6);
}
@media (prefers-reduced-transparency: reduce) { .panel { background: color-mix(in srgb, var(--stage-a) 96%, #fff); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.u-card { background: var(--p-card); border-radius: 18px; }
.dev { padding: 12px; display: grid; gap: 12px; position: relative; }
.pill-wrap { position: relative; }
.pill { display: flex; align-items: center; gap: 8px; height: 36px; width: min(100%, 262px); padding: 0 10px 0 12px; border: 0; border-radius: 999px; background: var(--p-pill); font-size: 14px; font-weight: 500; cursor: pointer; text-align: left; }
.pill .dn { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill .i { font-size: 15px; }
.pill .i:last-child { font-size: 16px; color: var(--p-sub); }
.menu {
  position: absolute; z-index: 5; left: 0; top: calc(100% + 6px); min-width: 250px; padding: 5px; border-radius: 12px;
  background: var(--p-menu); border: 1px solid var(--p-edge);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: 20% 0; pointer-events: none; transition: opacity .16s, transform .22s var(--ease);
}
.menu.open { opacity: 1; transform: none; pointer-events: auto; }
.menu button { display: grid; grid-template-columns: 16px 18px 1fr; align-items: center; gap: 6px; width: 100%; height: 28px; padding: 0 8px; border: 0; border-radius: 7px; background: none; font-size: 13px; text-align: left; cursor: pointer; }
.menu button .ck { visibility: hidden; }
.menu button[aria-selected="true"] .ck { visibility: visible; }
.menu button:hover, .menu button.hover { background: var(--p-tint); color: #fff; }
.u-row { display: grid; grid-template-columns: 24px 1fr 40px; align-items: center; gap: 10px; }
.u-row .big { width: 22px; height: 22px; display: grid; place-items: center; font-size: 15px; background: none; border: 0; cursor: pointer; }
.u-row .val { text-align: right; font-size: 12px; font-weight: 500; color: var(--p-sub); font-variant-numeric: tabular-nums; }
.apps { padding: 4px 0; overflow: hidden; }
.row { display: grid; grid-template-columns: 32px 1fr 24px; align-items: center; gap: 10px; min-height: 58px; padding: 0 12px; position: relative; transition: opacity .35s, background .3s; }
.row + .row::before { content: ""; position: absolute; left: 54px; right: 12px; top: 0; height: 1px; background: var(--p-line); }
.row.quiet { opacity: .62; }
.row.hl { background: color-mix(in srgb, var(--p-tint) 14%, transparent); opacity: 1; }
.tile { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-size: 18px; color: #fff; background: linear-gradient(160deg, var(--g1), var(--g2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 2px rgba(0, 0, 0, .25); }
.row .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 600; }
.row .pct { font-size: 11px; font-weight: 500; color: var(--p-sub); font-variant-numeric: tabular-nums; }
.row .mute { width: 24px; height: 24px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; font-size: 15px; }
.row.is-muted .mute { color: var(--p-sub); }
.foot { display: flex; justify-content: space-between; align-items: center; padding: 0 6px 2px; font-size: 11px; font-weight: 500; color: var(--p-sub); }
.foot .i { font-size: 17px; }

/* Slider that looks like the macOS one */
.sl { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer; --v: 50%; display: block; }
.sl:focus-visible { outline-offset: 0; }
.sl::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(to right, var(--p-tint) var(--v), var(--p-track) var(--v)); }
.sl::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 16px; margin-top: -6px; border-radius: 9px; border: 0; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .38), 0 0 0 .5px rgba(0, 0, 0, .12); transition: transform .15s var(--ease); }
.sl:active::-webkit-slider-thumb { transform: scale(1.06); }
.sl::-moz-range-track { height: 4px; border-radius: 999px; background: var(--p-track); }
.sl::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--p-tint); }
.sl::-moz-range-thumb { width: 24px; height: 16px; border-radius: 9px; border: 0; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .38); }
.sl.sm { height: 18px; }
.sl.sm::-webkit-slider-runnable-track { height: 3px; }
.sl.sm::-webkit-slider-thumb { width: 22px; height: 14px; margin-top: -5.5px; }

/* Hero visual: the panel floats on the page and sound waves run behind it. No frame, no backdrop. */
.stage-wrap { width: 100%; max-width: 640px; justify-self: end; min-width: 0; overflow: clip; overflow-clip-margin: 0; }
.hero-grid > *, .feat-a > *, .dl > * { min-width: 0; }
.stage-scale { transform-origin: top left; width: 640px; height: 620px; }
.stage { position: relative; width: 640px; height: 620px; }
.stage canvas { position: absolute; inset: 0; width: 640px; height: 620px; }
.menubar { position: absolute; inset: 0 0 auto 0; height: 30px; display: flex; justify-content: flex-end; align-items: center; gap: 2px; padding: 0 2px; font: 500 13px/1 -apple-system, "SF Pro Text", "Geist", system-ui, sans-serif; color: var(--text); }
.menubar .mb { height: 24px; min-width: 28px; padding: 0 7px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; transition: background .25s; }
.menubar .mb.on { background: color-mix(in srgb, var(--text) 16%, transparent); }
.menubar .mb.hit { cursor: pointer; }
.menubar .clock { padding: 0 8px; font-variant-numeric: tabular-nums; }
.tilt { position: absolute; top: 40px; right: 6px; transform: translate(var(--tx, 0px), var(--ty, 0px)); transition: transform .6s var(--ease); }
.tilt .panel { transform-origin: 50% 0; opacity: 0; transform: scale(.94) translateY(10px); transition: opacity .35s, transform .7s cubic-bezier(.2, 1.15, .3, 1); pointer-events: none; }
.tilt.open .panel { opacity: 1; transform: none; pointer-events: auto; }
.cursor { position: absolute; left: 0; top: 0; z-index: 8; width: 26px; height: 26px; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); opacity: 0; transition: opacity .3s; will-change: transform; }
.cursor.show { opacity: 1; }
.cursor svg { width: 100%; height: 100%; fill: #fff; stroke: #111; stroke-width: 28; paint-order: stroke; transition: transform .12s; transform-origin: 20% 15%; }
.cursor.press svg { transform: scale(.82); }
.foot .circ { width: 20px; height: 20px; border: 1.5px solid currentColor; border-radius: 50%; display: grid; place-items: center; }
.foot .circ .i { font-size: 9px; }

/* The app's own pieces, shown straight on the page (no box around them) */
.plain .u-card { background: none; border-radius: 0; padding: 0; }
.plain .apps { padding: 0; overflow: visible; }
.plain .row { padding: 0; }
.plain .row + .row::before { left: 44px; right: 0; }
.plain .menu { position: static; opacity: 1; transform: none; margin-top: 10px; pointer-events: none; width: min(100%, 300px); }
.plain .pill { width: min(100%, 300px); }
.row.slide { overflow: hidden; max-height: 0; min-height: 0; opacity: 0; transition: max-height .6s var(--ease), opacity .5s; }
.row.slide.in { max-height: 60px; min-height: 58px; opacity: 1; }
.row.fold { transition: max-height .5s var(--ease), opacity .4s; max-height: 60px; }
.row.fold.out { max-height: 0; min-height: 0; opacity: 0; }
.note-chip { display: flex; align-items: center; gap: .45rem; margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--p-sub); min-height: 20px; }

/* Features: no containers, only hairlines and space */
.feat { padding: clamp(2.6rem, 5vw, 4.2rem) 0; border-top: 1px solid var(--line); }
.feat-a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.feat h3 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); letter-spacing: -.035em; line-height: 1.08; }
.feat p { margin-top: .85rem; color: var(--muted); max-width: 38ch; }
.feat-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.feat-pair > article { padding: clamp(2.2rem, 4vw, 3.4rem) clamp(1.2rem, 3.5vw, 3.5rem) clamp(2.2rem, 4vw, 3.4rem) 0; }
.feat-pair > article + article { padding-left: clamp(1.2rem, 3.5vw, 3.5rem); padding-right: 0; border-left: 1px solid var(--line); }
.feat-pair h3 { font-size: clamp(1.5rem, 2.3vw, 2rem); letter-spacing: -.03em; line-height: 1.1; }
.feat-pair p { margin-top: .75rem; color: var(--muted); max-width: 36ch; }
.demo { margin-top: 2.2rem; min-height: 11.5rem; }
.feat-a .demo { margin-top: 0; min-height: 0; max-width: 460px; justify-self: end; width: 100%; }

/* Privacy: a plain list, one hairline above each line */
.facts { margin-top: 3rem; max-width: 62rem; }
.fact { display: grid; grid-template-columns: minmax(11rem, 1fr) 2fr; gap: .4rem 2.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.fact h3 { font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.3; }
.fact p { color: var(--muted); }

/* Download */
.dl { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.8rem, 4vw, 3.4rem); align-items: center; padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.dl img { width: clamp(92px, 12vw, 148px); height: auto; border-radius: 22%; }
.dl h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.dl-meta { margin-top: .9rem; color: var(--muted); max-width: 52ch; }
.sha { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.sha code { font: 500 .78rem/1.4 "Geist Mono", ui-monospace, Menlo, monospace; color: var(--muted); overflow-wrap: anywhere; max-width: 100%; }
.btn .i.apple { width: 1.05em; height: 1.2em; margin-top: -2px; }
footer { padding: 2.5rem 0 3.5rem; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
footer .brand { font-size: 1rem; color: var(--text); }
footer .brand img { width: 24px; height: 24px; border-radius: 7px; }
footer p { max-width: 52ch; }
footer a { color: var(--text); }

/* Motion: entrance on load, reveal on scroll. Both off when the visitor asks for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tilt .panel, .menu, .row, .row.slide { transition: none; }
}

/* Small screens: everything stacks, nothing scrolls sideways. */
@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: 2rem; }
  .hero-grid, .feat-a, .dl { grid-template-columns: 1fr; }
  .stage-wrap { justify-self: start; }
  .feat-a .demo { justify-self: start; max-width: none; margin-top: 2rem; }
  .feat-pair { grid-template-columns: 1fr; }
  .feat-pair > article, .feat-pair > article + article { padding: 2.2rem 0; border-left: 0; }
  .feat-pair > article + article { border-top: 1px solid var(--line); }
  .fact { grid-template-columns: 1fr; padding: 1.3rem 0; }
}
@media (max-width: 520px) {
  .wrap { width: min(1180px, 100% - 2rem); }
  .nav .btn span.long { display: none; }
  .btn { height: 3rem; padding: 0 1.3rem; }
}

/* Animation delays and two layout tweaks that used to be inline style attributes (the CSP now forbids those). */
.d0 { --d: 0; } .d1 { --d: 1; } .d2 { --d: 2; } .d3 { --d: 3; }
.tight { padding-top: 1rem; }
.hero.short { min-height: 60dvh; }
.lbl { font-size: .88rem; color: var(--muted); }
