/* NutriCore landing. Tokens follow the patient app (nutricore_app/lib/core/theme). */
@font-face { font-family: "Outfit"; src: url("fonts/outfit-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* The studio colour. app.js swaps it live from the "La tua app" form. */
  --seed: #2D5F4F;
  --ground: #F3F4F1;
  --bg: color-mix(in oklab, var(--seed) 7%, var(--ground));
  --card: #fff;
  --ink: #1A2421;
  --muted: #56625D;
  --line: color-mix(in oklab, var(--seed) 16%, transparent);
  --soft: color-mix(in oklab, var(--seed) 11%, #fff);
  --accent: var(--seed);           /* seed used as text / icon on the page ground */
  --on-seed: #fff;
  --amber: #D4A574;
  --water: #4F7C93;
  --warn: #9A5418;
  --warn-tint: #F4E4D3;
  --ok: #3E6E52;
  --ok-tint: #E6EFE9;
  --deep: color-mix(in oklab, var(--seed) 62%, #0C1210);  /* studio band */
  --phone-frame: #1B201E;
  --r-page: 32px;
  --r-card: 24px;
  --r-in: 16px;
  --display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #101513;
    --bg: color-mix(in oklab, var(--seed) 16%, var(--ground));
    --card: color-mix(in oklab, var(--seed) 12%, #1A201D);
    --ink: #E9EFEC;
    --muted: #A9B5AF;
    --line: color-mix(in oklab, var(--seed) 30%, rgb(255 255 255 / .1));
    --soft: color-mix(in oklab, var(--seed) 28%, #1A201D);
    --accent: color-mix(in oklab, var(--seed) 45%, #fff);
    --warn: #E3A266;
    --warn-tint: #3A2A1B;
    --ok: #8CC3A0;
    --ok-tint: #1E3127;
    --deep: color-mix(in oklab, var(--seed) 70%, #0A0E0C);
    --phone-frame: #000;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-bottom: 96px; /* room for the tab bar */
  transition: background-color .5s var(--ease);
}
::selection { background: color-mix(in oklab, var(--seed) 30%, transparent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img, svg { display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; text-wrap: balance; letter-spacing: -.025em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.num, time, .bia-vals dd, .amount { font-variant-numeric: tabular-nums; }
.sprite { position: absolute; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
svg use, .sprite symbol { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 16px/1 var(--body); text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-primary { background: var(--seed); color: var(--on-seed); }
.btn-primary:hover { background: color-mix(in oklab, var(--seed) 82%, #000); }
.btn-quiet { background: var(--soft); color: var(--ink); }
.btn-quiet:hover { background: color-mix(in oklab, var(--seed) 18%, var(--card)); }
.btn-light { background: #fff; color: color-mix(in oklab, var(--seed) 80%, #000); }
.btn-light:hover { background: color-mix(in oklab, var(--seed) 10%, #fff); }
.btn-outline-light { color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .55); }
.btn-outline-light:hover { background: rgb(255 255 255 / .12); }
.btn-block { width: 100%; }
@media (prefers-color-scheme: dark) {
  .btn-primary { background: color-mix(in oklab, var(--seed) 40%, #fff); color: color-mix(in oklab, var(--seed) 55%, #000); }
  .btn-primary:hover { background: color-mix(in oklab, var(--seed) 28%, #fff); }
}

/* ---------- Top bar and tab bar ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 21px/1 var(--display); letter-spacing: -.02em; }
.mark { width: 32px; height: 32px; }
.mark-bg { fill: var(--seed); transition: fill .5s var(--ease); }
.mark-leaf { fill: none; stroke: var(--on-seed); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.top-links { display: flex; gap: 4px; margin-left: auto; }
.top-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.top-links a:hover { color: var(--ink); background: var(--soft); }
.top-cta { display: flex; gap: 8px; }
@media (max-width: 860px) { .top-links { display: none; } .top-cta { margin-left: auto; } }
@media (max-width: 440px) { .top-signup { display: none; } }

.tabbar {
  position: fixed; z-index: 30; left: 50%; bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; gap: 2px; padding: 6px;
  width: max-content; max-width: calc(100% - 20px);
  background: color-mix(in oklab, var(--card) 86%, transparent);
  backdrop-filter: saturate(1.5) blur(18px); -webkit-backdrop-filter: saturate(1.5) blur(18px);
  border-radius: 999px;
  box-shadow: 0 1px 0 var(--line) inset, 0 0 0 1px var(--line), 0 18px 40px -18px rgb(10 20 16 / .45);
}
.tabbar { transition: opacity .35s var(--ease), transform .45s var(--ease), visibility .35s; }
.in-hero .tabbar { opacity: 0; visibility: hidden; transform: translate(-50%, 24px); }
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 66px; padding: 7px 10px 6px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font: 600 12px/1 var(--body);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.tabbar svg { width: 22px; height: 22px; }
.tabbar a:hover { color: var(--ink); }
.tabbar a[aria-current="true"] { background: var(--soft); color: var(--accent); }
@media (max-width: 400px) { .tabbar a { min-width: 0; flex: 1; padding-inline: 4px; } .tabbar { width: calc(100% - 20px); } }

/* ---------- Shared type ---------- */
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 52ch; }
.fine { font-size: 14px; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.sec { padding-block: clamp(84px, 11vw, 150px) 0; }
.sec h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; max-width: 17ch; }
.sec-head { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); }
@media (min-width: 980px) { .sec-head { grid-template-columns: 1.15fr 1fr; align-items: end; gap: 48px; } }
.card { background: var(--card); border-radius: var(--r-card); padding: clamp(20px, 2.4vw, 28px); box-shadow: 0 0 0 1px var(--line); }
.card-h { font: 700 19px/1.2 var(--display); letter-spacing: -.01em; }
.card-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font: 600 12px/1 var(--body); background: var(--soft); color: var(--accent); white-space: nowrap; }
.chip svg { width: 14px; height: 14px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(12px, 2.5vw, 28px); }
.hero h1 { font-size: clamp(38px, 3.7vw, 54px); line-height: 1; letter-spacing: -.035em; }
.hero .lead { font-size: 17px; margin-top: -4px; }
.hero-cta { display: grid; gap: 12px; padding-top: 4px; }
.peek { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: color-mix(in oklab, var(--seed) 7%, #F3F4F1); color: #1A2421; transition: background-color .5s var(--ease); }
.peek b { flex: 1; min-width: 0; font: 700 16px/1.2 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peek .fatto { margin: 0; min-height: 32px; padding: 0 14px; }
@media (min-width: 860px) { .peek { display: none; } }
.console {
  background: var(--card); border-radius: var(--r-page);
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -48px rgb(10 25 20 / .45);
  overflow: hidden;
}
.console-bar, .win-bar {
  display: flex; align-items: center; gap: 7px; height: 44px; padding: 0 18px;
  border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.console-bar i, .win-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.console-bar span, .win-bar span { margin-left: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console-body { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .console-body { grid-template-columns: minmax(340px, 500px) minmax(0, 1fr); } }

.brand-form { padding: clamp(22px, 3vw, 40px); display: grid; gap: 18px; align-content: start; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .brand-form { border-bottom: 0; border-right: 1px solid var(--line); } }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 8px; }
.field > span { margin-bottom: 0; }
.field input[type=text], .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--ink); font: 500 16px/1.4 var(--body); resize: none;
  caret-color: var(--accent); transition: border-color .2s, box-shadow .2s;
}
.field input[type=text]:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--seed) 18%, transparent); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches label { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--c); cursor: pointer; box-shadow: 0 0 0 1px rgb(0 0 0 / .08) inset; transition: transform .2s var(--ease); }
.swatches label:hover { transform: scale(1.06); }
.swatches input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.swatches label:has(input:checked) { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--c); }
.swatches label:has(input:checked)::after { content: ""; position: absolute; inset: 15px 13px 17px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.swatches label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 5px; }

.stage {
  position: relative; display: grid; place-items: center;
  padding: 72px 16px 32px; min-height: 0;
  background:
    radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 1.5px) 0 0 / 22px 22px,
    var(--bg);
}
.push {
  position: absolute; z-index: 2; top: 18px; left: 50%; transform: translateX(-50%);
  width: min(330px, calc(100% - 32px));
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 20px;
  background: color-mix(in oklab, var(--card) 82%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px var(--line), 0 16px 30px -18px rgb(0 0 0 / .4);
  font-size: 12.5px; line-height: 1.35;
  animation: drop 0.9s 0.6s var(--ease) both;
}
.push b { display: block; font-size: 13px; }
.push small { color: var(--muted); font-size: 12.5px; }
.push em { font-style: normal; color: var(--muted); align-self: start; font-size: 12px; }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -16px) scale(.96); } }

/* ---------- Phone ---------- */
.phone {
  --w: 300px;
  width: var(--w); max-width: 100%; flex: none;
  padding: 10px; border-radius: 48px; background: var(--phone-frame);
  box-shadow: 0 0 0 1.5px #3A413E inset, 0 40px 70px -36px rgb(10 25 20 / .55);
}
.scr {
  --s-bg: color-mix(in oklab, var(--seed) 7%, #F3F4F1);
  --s-card: #fff;
  --s-ink: #1A2421;
  --s-muted: #56625D;
  --s-line: #EEF1EF;
  --s-accent: var(--seed);
  --s-chip: color-mix(in oklab, var(--seed) 12%, #fff);
  --ok: #3E6E52;
  position: relative; border-radius: 38px; overflow: hidden;
  background: var(--s-bg); color: var(--s-ink);
  padding: 0 14px 14px; min-height: 560px;
  font-size: 13px; line-height: 1.4;
  transition: background-color .5s var(--ease);
}
.sb { display: flex; justify-content: space-between; align-items: center; height: 42px; padding: 0 12px; font-weight: 600; font-size: 13px; }
.sb::before { content: ""; position: absolute; left: 50%; top: 10px; width: 86px; height: 24px; border-radius: 20px; background: #000; transform: translateX(-50%); }
.sb-r { width: 38px; height: 11px; border-radius: 3px; background: linear-gradient(90deg, var(--s-ink) 70%, color-mix(in oklab, var(--s-ink) 35%, transparent) 70%); }
.app-top { display: flex; align-items: center; gap: 10px; padding: 6px 2px 12px; }
.logo {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px;
  background: var(--seed); color: #fff; font: 700 13px/1 var(--display); letter-spacing: .02em;
  transition: background-color .5s var(--ease);
}
.app-name { font: 700 16px/1.15 var(--display); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.welcome { padding: 4px 2px 14px; }
.hi { font: 700 22px/1.1 var(--display); letter-spacing: -.02em; margin-bottom: 4px; }
.welcome p:last-child { color: var(--s-muted); overflow-wrap: anywhere; }
.mcard { background: var(--s-card); border-radius: 20px; padding: 14px; box-shadow: 0 1px 0 rgb(0 0 0 / .04); }
.now-card { display: grid; gap: 6px; margin-bottom: 10px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; color: var(--s-accent); }
.tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.scr .chip { background: var(--s-chip); color: var(--s-accent); font-size: 11px; padding: 4px 8px; }
.meal-name { font: 700 20px/1.1 var(--display); }
.meal-items { color: var(--s-muted); }
.fatto, .scr button.fatto {
  justify-self: start; display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0 18px; margin-top: 4px; border-radius: 999px; border: 0;
  background: var(--seed); color: #fff; font: 600 13px/1 var(--body);
  transition: background-color .5s var(--ease), transform .2s var(--ease);
}
.msg { margin-bottom: 10px; display: grid; gap: 2px; border-radius: 20px 20px 20px 6px; }
.msg small { color: var(--s-muted); font-size: 11.5px; }
.mini-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.mini { display: grid; gap: 2px; padding: 12px; }
.mini small { color: var(--s-muted); font-size: 11.5px; }
.mini b { font-size: 14px; }
.drops { display: flex; gap: 3px; margin-top: 4px; }
.drops i { width: 9px; height: 12px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--water); }
.drops i.off { background: color-mix(in oklab, var(--water) 22%, var(--s-card)); }
.apptabs {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  display: flex; justify-content: space-around; padding: 10px 6px; border-radius: 22px;
  background: var(--s-card); font-size: 11px; font-weight: 600; color: var(--s-muted);
}
.apptabs .on { color: var(--s-accent); }
.scr-title { font: 700 24px/1.1 var(--display); letter-spacing: -.02em; padding: 4px 2px 12px; }
.scr-note { font-size: 12.5px; color: var(--s-muted); text-align: center; margin-top: 10px; }

/* ---------- Oggi (interactive phone) ---------- */
.split { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: auto 1fr; } }
.split > .phone { justify-self: center; }
@media (max-width: 899px) { .split > .copy { order: -1; } }
.copy { display: grid; gap: 20px; align-content: start; }
.phone-live .scr { min-height: 620px; }
.seg { display: flex; padding: 4px; border-radius: 999px; background: var(--s-card); margin-bottom: 12px; }
.seg button { flex: 1; min-height: 34px; border: 0; border-radius: 999px; background: transparent; font-size: 12.5px; font-weight: 600; color: var(--s-muted); cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease); }
.seg button[aria-pressed="true"] { background: var(--seed); color: #fff; }
.meals { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.meal { background: var(--s-card); border-radius: 18px; padding: 12px 14px; display: grid; gap: 8px; transition: background-color .4s var(--ease); }
.m-h { display: flex; align-items: baseline; gap: 8px; }
.m-h small { margin-left: auto; order: 2; }
.m-h b { font: 700 15px/1.2 var(--display); }
.m-h small { color: var(--s-muted); font-size: 12px; }
.m-items, .m-alt, .scr .meal .fatto { display: none; }
.m-ok { display: none; align-items: center; gap: 4px; color: var(--ok); font-weight: 600; font-size: 12px; }
.m-ok svg { width: 15px; height: 15px; }
.meal.now { box-shadow: 0 0 0 1.5px var(--s-accent); }
.meal.now .m-h b { font-size: 20px; }
.meal.now .m-h::after { content: "Adesso"; order: 1; padding: 3px 8px; border-radius: 999px; background: var(--s-chip); font-size: 11px; font-weight: 600; color: var(--s-accent); font-family: var(--body); }
.meal.now .m-items, .meal.now .m-alt { display: block; }
.scr .meal.now .fatto { display: inline-flex; cursor: pointer; }
.meal.now .fatto:hover { background: color-mix(in oklab, var(--seed) 80%, #000); }
.meal.now .fatto:active { transform: scale(.96); }
.meal.done { background: color-mix(in oklab, var(--seed) 5%, var(--s-card)); grid-template-columns: 1fr auto; align-items: center; }
.meal.done .m-ok { display: inline-flex; }
.meal.done .m-h small { display: none; }
.m-items { list-style: none; margin: 0; padding: 0; }
.m-items li { display: flex; justify-content: space-between; padding: 5px 0; border-top: 1px solid var(--s-line); }
.m-items li span:last-child { font-variant-numeric: tabular-nums; color: var(--s-muted); }
.m-alt { font-size: 12px; color: var(--s-accent); font-weight: 500; }
.day-end { display: none; margin-top: 12px; text-align: center; font-weight: 600; }
.day-end button { border: 0; background: none; color: var(--s-accent); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; padding: 6px; }
.phone-live.complete .day-end { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .meal.now { animation: rise .45s var(--ease); }
  @keyframes rise { from { transform: translateY(8px); opacity: .4; } }
}

.points { display: grid; margin: 8px 0 0; border-top: 1px solid var(--line); }
.points div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
@media (min-width: 640px) { .points div { grid-template-columns: 15em 1fr; gap: 24px; } }
.points dt { font: 700 18px/1.3 var(--display); }
.points dd { margin: 0; color: var(--muted); }

/* ---------- Piano ---------- */
.editor-wrap { position: relative; display: grid; gap: 24px; }
.window { background: var(--card); border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgb(10 25 20 / .4); overflow: hidden; }
.editor { max-width: 860px; }
.editor-body { padding: clamp(18px, 3vw, 32px); display: grid; gap: 18px; }
.ed-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg); justify-self: start; font-size: 14px; font-weight: 600; }
.ed-tabs span { padding: 8px 16px; border-radius: 999px; color: var(--muted); }
.ed-tabs .on { background: var(--seed); color: var(--on-seed); }
@media (prefers-color-scheme: dark) { .ed-tabs .on { background: color-mix(in oklab, var(--seed) 40%, #fff); color: color-mix(in oklab, var(--seed) 55%, #000); } }
.ed-h { font: 700 20px/1.2 var(--display); display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.ed-h small { font: 500 14px var(--body); color: var(--muted); }
.ed-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.ed-row > :nth-child(3) { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 640px) { .ed-row { grid-template-columns: 12em 7em 1fr; } .ed-row > :nth-child(3) { grid-column: auto; } }
.ed-row .num { color: var(--muted); }
.alt-chip { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--soft); color: var(--accent); font-weight: 500; }
.flag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--warn-tint); color: var(--warn); }
.flag svg { width: 15px; height: 15px; }
.ed-row.warn > span:first-child { text-decoration: line-through; text-decoration-color: var(--warn); text-decoration-thickness: 1.5px; }
.ed-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.ed-foot span:first-child { font-weight: 600; color: var(--ink); }
.phone-sm { --w: 270px; justify-self: center; }
.phone-sm .scr { min-height: 500px; }
@media (min-width: 980px) {
  .editor-wrap { display: block; padding-bottom: 40px; }
  .editor { width: 78%; }
  .phone-sm { position: absolute; right: 0; top: 48px; }
}
.ptabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--s-card); margin-bottom: 12px; font-size: 12px; font-weight: 600; }
.ptabs span { flex: 1; text-align: center; padding: 7px 0; border-radius: 999px; color: var(--s-muted); }
.ptabs .on { background: var(--seed); color: #fff; }
.pmeal { background: var(--s-card); border-radius: 16px; padding: 11px 13px; margin-bottom: 8px; display: grid; gap: 2px; }
.pmeal b { font: 700 14px/1.2 var(--display); }
.pmeal span { color: var(--s-muted); }
.pmeal em { font-style: normal; color: var(--s-accent); font-weight: 600; }
.pnote { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--s-accent); font-weight: 500; padding: 8px 4px; }
.pnote svg { width: 16px; height: 16px; flex: none; }
.aside { display: flex; gap: 14px; align-items: flex-start; max-width: 62ch; margin-top: clamp(28px, 4vw, 40px); color: var(--muted); }
.aside svg { width: 24px; height: 24px; flex: none; color: var(--accent); margin-top: 2px; }
.aside b { color: var(--ink); }

/* ---------- Progressi ---------- */
.prog-grid { display: grid; gap: 20px; }
.prog-grid > .phone { justify-self: center; }
@media (min-width: 720px) { .prog-grid { grid-template-columns: auto 1fr; } .prog-grid > .phone { grid-row: span 2; } }
@media (min-width: 1100px) { .prog-grid { grid-template-columns: auto 1.25fr 1fr; align-items: start; } .prog-grid > .phone { grid-row: auto; } .checkin { margin-top: 72px; } }
.phone-ba .scr { min-height: 540px; }
.ba { position: relative; aspect-ratio: 3 / 4.2; border-radius: 22px; overflow: hidden; }
.ba-pic { position: absolute; inset: 0; display: grid; place-items: end center; }
.ba-pic svg { width: 78%; height: auto; }
.ba-before { background: #DCE3DF; }
.ba-before svg { fill: #A9B7B0; }
.ba-after { background: color-mix(in oklab, var(--seed) 18%, #EEF2EF); clip-path: inset(0 0 0 var(--pos)); }
.ba-after svg { fill: color-mix(in oklab, var(--seed) 55%, #A9B7B0); }
.ba-l { position: absolute; top: 12px; padding: 5px 9px; border-radius: 999px; background: rgb(255 255 255 / .9); font-size: 11.5px; font-weight: 600; }
.ba-before .ba-l { left: 12px; }
.ba-after .ba-l { right: 12px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; }
.ba-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgb(0 0 0 / .2); }
.ba-handle::before { content: ""; position: absolute; z-index: 1; top: 50%; left: 50%; width: 14px; height: 8px; margin: -4px 0 0 -7px; border: solid #1A2421; border-width: 0 2px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba:has(.ba-range:focus-visible) .ba-handle::after { box-shadow: 0 0 0 3px var(--seed), 0 4px 14px rgb(0 0 0 / .2); }
.bia { margin: 0; display: grid; gap: 16px; }
.bia figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.bia-chart { width: 100%; height: auto; overflow: visible; }
.bia-chart .grid path { stroke: var(--line); stroke-width: 1; fill: none; }
.bia-chart polyline { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.l-fat, .dots-fat { stroke: var(--amber); fill: var(--amber); }
.l-lean, .dots-lean { stroke: var(--accent); fill: var(--accent); }
.dots-fat circle, .dots-lean circle { stroke: var(--card); stroke-width: 2; }
.bia-vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.bia-vals dt { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.bia-vals dt i { width: 10px; height: 10px; border-radius: 50%; }
.k-fat { background: var(--amber); }
.k-lean { background: var(--accent); }
.bia-vals dd { margin: 2px 0 0; font: 700 20px/1.2 var(--display); }
.bia-vals small { display: block; font: 600 12.5px var(--body); color: var(--muted); }
@media (max-width: 420px) { .bia-vals { grid-template-columns: 1fr 1fr; } }
.checkin { display: grid; gap: 14px; }
.scale { margin: 0; display: grid; gap: 10px; }
.scale div { display: grid; grid-template-columns: 5.5em 1fr; align-items: center; }
.scale dt { font-weight: 600; font-size: 15px; }
.scale dd { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { flex: 1; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) calc(var(--v) * 20%), var(--soft) 0); }
.quote { padding: 14px 16px; border-radius: 18px 18px 18px 6px; background: var(--soft); font-size: 15px; }

/* ---------- Studio (deep band) ---------- */
.studio {
  margin-top: clamp(84px, 11vw, 150px);
  padding-block: clamp(72px, 9vw, 128px);
  background: var(--deep); color: #EEF3F0;
  --line: rgb(255 255 255 / .14);
  transition: background-color .5s var(--ease);
}
.studio .lead { color: rgb(238 243 240 / .78); }
.studio .window { background: #fff; color: #1A2421; --line: #E3E8E5; --muted: #56625D; --soft: color-mix(in oklab, var(--seed) 10%, #fff); --accent: var(--seed); box-shadow: 0 40px 80px -40px rgb(0 0 0 / .6); }
@media (prefers-color-scheme: dark) { .studio .window { background: #1A201D; color: #E9EFEC; --line: rgb(255 255 255 / .1); --muted: #A9B5AF; --soft: color-mix(in oklab, var(--seed) 30%, #1A201D); --accent: color-mix(in oklab, var(--seed) 45%, #fff); } }
.panel-body { display: grid; gap: 16px; padding: 16px; background: color-mix(in oklab, var(--seed) 4%, var(--card)); }
@media (min-width: 860px) { .panel-body { grid-template-columns: 190px 1fr 1fr; grid-template-rows: auto auto; padding: 20px; } .side { grid-row: span 2; } .risk { grid-row: span 2; } }
@media (min-width: 1100px) { .panel-body { grid-template-columns: 200px 1.1fr 1fr; } }
.studio .window .panel-body { background: color-mix(in oklab, var(--seed) 5%, #F6F7F5); }
@media (prefers-color-scheme: dark) { .studio .window .panel-body { background: #151A18; } }
.side { list-style: none; margin: 0; padding: 4px; display: none; font-size: 14px; font-weight: 500; color: var(--muted); }
@media (min-width: 860px) { .side { display: grid; align-content: start; gap: 2px; } }
.side li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; }
.side li svg { width: 18px; height: 18px; }
.side li b { margin-left: auto; font-size: 11px; padding: 2px 7px; border-radius: 999px; background: var(--seed); color: #fff; }
.side .on { background: var(--soft); color: var(--accent); font-weight: 600; }
.tile { background: var(--card); border-radius: 20px; padding: 18px; box-shadow: 0 0 0 1px var(--line); }
.studio .window .tile { background: #fff; }
@media (prefers-color-scheme: dark) { .studio .window .tile { background: #1F2623; } }
.tile-h { font: 700 17px/1.2 var(--display); margin-bottom: 8px; }
.tile ul { list-style: none; margin: 0; padding: 0; }
.tile li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.tile li:first-child { border-top: 0; }
.tile li b { display: block; font-weight: 600; }
.tile li small { color: var(--muted); font-size: 13px; }
.risk li small { color: var(--warn); font-weight: 500; }
.av { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--warn-tint); color: var(--warn); font-size: 12px; font-weight: 700; }
.agenda time { flex: none; width: 3.2em; font-weight: 600; color: var(--accent); }
.inv li { justify-content: space-between; }
.st { flex: none; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--soft); color: var(--accent); }
.st.ok { background: var(--ok-tint); color: var(--ok); }

/* ---------- Prezzo ---------- */
.price { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .price { grid-template-columns: 1.2fr minmax(340px, 440px); gap: 72px; } }
.price-card { display: grid; gap: 18px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-page); }
.amount { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.amount .num { font: 700 clamp(64px, 8vw, 88px)/.9 var(--display); letter-spacing: -.04em; }
.amount span:last-child { color: var(--muted); font-weight: 500; }
.trial { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ok); }
.trial svg { width: 20px; height: 20px; }
.incl { list-style: none; margin: 0; padding: 0; }
.incl li { padding: 11px 0; border-top: 1px solid var(--line); }

/* ---------- Pazienti ---------- */
.pazienti .paz { display: grid; gap: 28px; padding: clamp(24px, 5vw, 64px); border-radius: var(--r-page); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
@media (min-width: 940px) { .pazienti .paz { grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; } }
.steps { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; }
.steps li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--accent); font: 700 14px/1 var(--display); transform: translateY(-1px); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px 8px 14px; border-radius: 14px; background: var(--ink); color: var(--bg); font: 600 16px/1.1 var(--body); text-decoration: none; }
.store svg { width: 24px; height: 24px; }
.store small { display: block; font-size: 11px; font-weight: 500; opacity: .8; }
.invite { display: grid; gap: 14px; background: var(--soft); box-shadow: none; }
.invite h3 { font-size: 24px; line-height: 1.15; }
.invite p { color: var(--muted); }
.invite-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- FAQ ---------- */
.faq-in { display: grid; gap: 28px; }
@media (min-width: 940px) { .faq-in { grid-template-columns: 1fr 1.6fr; gap: 72px; } .faq-in h2 { position: sticky; top: 100px; align-self: start; } }
.qa { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font: 600 clamp(18px, 1.7vw, 21px)/1.3 var(--display); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 12px; height: 12px; margin: 6px 6px 0 0; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(-135deg) translate(-4px, -4px); }
details p { padding: 0 0 24px; color: var(--muted); max-width: 64ch; }

/* ---------- Close and footer ---------- */
.close { margin-top: clamp(84px, 11vw, 150px); background: var(--seed); color: #fff; padding-block: clamp(64px, 9vw, 120px); transition: background-color .5s var(--ease); }
.close-in { display: grid; gap: 32px; }
.close .fine { color: rgb(255 255 255 / .82); margin-top: -12px; }
.close h2 { font-size: clamp(38px, 6vw, 76px); line-height: 1; letter-spacing: -.035em; max-width: 15ch; }
.foot { padding-block: 48px 24px; font-size: 14.5px; color: var(--muted); }
.foot-in { display: grid; gap: 14px; }
.foot-brand { color: var(--ink); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot nav a { color: var(--ink); }

/* ---------- Legal pages ---------- */
.doc { max-width: 760px; padding-block: clamp(40px, 7vw, 88px) 40px; }
.doc .updated { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.doc h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -.035em; margin-bottom: 20px; }
.doc .lead { margin-bottom: 32px; }
.doc section { padding-top: 40px; scroll-margin-top: 90px; }
.doc h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; margin-bottom: 14px; }
.doc p, .doc li, .doc dd { color: color-mix(in oklab, var(--ink) 86%, var(--bg)); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; display: grid; gap: 10px; margin: 12px 0; }
.doc ul ul { margin-top: 10px; }
.doc strong { color: var(--ink); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; border-radius: var(--r-card); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.toc a { padding: 7px 13px; border-radius: 999px; background: var(--soft); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.toc a:hover { background: color-mix(in oklab, var(--seed) 20%, var(--card)); }
.box { margin-top: 16px; padding: 18px 20px; border-radius: 18px; background: var(--soft); }
.facts { display: grid; margin: 12px 0; border-top: 1px solid var(--line); }
.facts dt { font: 700 17px/1.3 var(--display); padding-top: 16px; }
.facts dd { margin: 4px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.doc .muted { color: var(--muted); font-size: 14.5px; margin-top: 40px; }
mark.todo { background: #FFE58A; color: #3B2F00; padding: 0 4px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.stage .scr { min-height: 0; padding-bottom: 72px; }
.invite .btn-quiet { background: var(--card); }
.legal { padding-bottom: 0; }

.points-dark { margin-top: clamp(40px, 5vw, 64px); }
.studio .points dt { color: #fff; }
.studio .points dd { color: rgb(238 243 240 / .78); }

/* demo data label in window bars */
.demo { margin-left: auto; flex: none; font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--warn-tint); color: var(--warn); }
.doc .updated { margin: -16px 0 32px; }

@media (prefers-color-scheme: dark) {
  .scr {
    --s-bg: color-mix(in oklab, var(--seed) 14%, #121715);
    --s-card: color-mix(in oklab, var(--seed) 10%, #1C2320);
    --s-ink: #E9EFEC;
    --s-muted: #A9B5AF;
    --s-line: rgb(255 255 255 / .08);
    --s-accent: color-mix(in oklab, var(--seed) 42%, #fff);
    --s-chip: color-mix(in oklab, var(--seed) 32%, #1C2320);
    --ok: #8CC3A0;
  }
  .peek { background: color-mix(in oklab, var(--seed) 14%, #121715); color: #E9EFEC; }
}
