/* Verisento marketing site: brand tokens over the layout kit (assets/). Colours and faces come from
   brand/tokens.json (light theme); fonts are self-hosted, nothing is fetched from a third party. */
@font-face { font-family: "Archivo"; src: url("fonts/Archivo-latin-wdth-wght.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --p-bg: #f4f6f5; --p-surface: #ffffff; --p-ink: #0e1b26; --p-muted: #4d5b58;
  --p-accent: #1c7348; --p-accent-ink: #ffffff; --p-action: #1c7348; --p-action-ink: #ffffff;
  --p-inv-bg: #0e1b26; --p-inv-surface: #1b2832; --p-inv-ink: #e8eeec; --p-inv-muted: #9fb0ac;
  --p-inv-accent: #f4f6f5; --p-inv-accent-ink: #0e1b26; --p-inv-action: #f4f6f5; --p-inv-action-ink: #0e1b26;
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-text: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 600;
  --display-tracking: -0.015em;
  --display-tracking-xl: -0.02em;
  --ly-scale: 0.78;
}
h1, h2, .mo-la__type { font-stretch: 112%; }

/* hero: the real "Da gestire" table in a window, cut by the frame's right and bottom edges */
.hero__art { background:
    radial-gradient(70% 60% at 18% 12%, color-mix(in oklab, var(--ground-surface) 80%, white), transparent 70%),
    var(--ground-bg); }
.hero__proof { font-size: var(--t-small); color: var(--ink); }
#traccia .mo-la__sub { color: var(--ink); }
.shot { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px rgb(14 27 38 / .08), 0 30px 60px -30px rgb(14 27 38 / .35); }
.shot__bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgb(14 27 38 / .08); font-size: 13px; color: #4d5b58; }
.shot__dots { display: flex; gap: 6px; } .shot__dots i { width: 10px; height: 10px; border-radius: 50%; background: #d3dad7; }
.shot__bar { border-radius: 12px 12px 0 0; }
.shot > img { display: block; width: 100%; height: auto; border-radius: 0 0 0 12px; }
.hero__art > .ly-piece--main.shot { width: 720px; }
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 312px; z-index: 2; }
.note { background: #fff; color: #0e1b26; border-radius: 12px; padding: 14px 16px; font: 400 14px/1.4 var(--font-text); box-shadow: 0 0 0 1px rgb(14 27 38 / .08), 0 18px 40px -18px rgb(14 27 38 / .45); }
.note__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.note h5 { margin: 0; font: 500 14px/1.3 var(--font-text); }
.note__chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 13px; font-weight: 500; background: #e1f1e8; color: #165e3a; white-space: nowrap; }
.note__chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.note__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: #4d5b58; border-top: 1px solid rgb(14 27 38 / .08); }
.note__line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #e1f1e8; color: #165e3a; font-style: normal; font-size: 12px; font-weight: 500; }
.note__line i.warn { background: #fbe5e3; color: #b3261e; }
.note__line b { font-weight: 500; color: #0e1b26; }
@media (max-width: 1023px) { .hero__art > .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 280px; } }

/* screens are shown from their top-left corner, cut by their frame */
.portal { margin-top: var(--s-7); border: 1px solid var(--line); }
.portal > .frame__img, .record > .frame__img { object-position: left top; }
/* phone screens at their true size (390px wide), never stretched to a wider panel */
#app .panel { --p-h: 380px; border: 1px solid var(--line); background: var(--surface); }
#app .panel > .frame__img, .sent > .frame__img { inset: 0 auto auto 50%; width: 390px; height: auto; transform: translateX(-50%); }
.sent { flex: 1 1 0; min-height: 200px; margin-top: var(--s-5); border: 1px solid var(--line); background: var(--surface); }
@media (min-width: 640px) and (max-width: 1023px) { #app { --h: 2; } }
@media (max-width: 639px) { .nav__logo img { height: 20px; } }
@media (max-width: 359px) { .nav__actions .btn { display: none; } }
@media (max-width: 639px) { #app .panel { --p-h: 250px; } }

.facts { list-style: none; margin: 0; padding: 0; display: grid; }
.facts li { padding: var(--s-3) 0; border-top: 1px solid var(--line); font-size: var(--t-body); }
.footer__mark img { height: 48px; width: auto; }
@media (max-width: 639px) { .footer__mark img { height: 30px; } }
/* phone: the FAQ's picture takes exactly what its two screens leave above the answers */
@media (max-width: 639px) {
  #faq .grid.fill { display: flex; flex-direction: column; }
  #faq .split-col { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
  #faq .sent { min-height: 0; }
  #faq .faq { flex: none; }
}

/* privacy page: one readable column, not a stack of screens */
.legal { padding: calc(var(--nav) + var(--s-8)) 0 var(--s-9); }
.legal__body { max-width: 760px; margin-inline: max(var(--gut), calc((100% - 1280px) / 2)) auto; }
.legal__body h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; margin: 0 0 var(--s-3); }
.legal__body h2 { font-size: 24px; line-height: 1.25; margin: var(--s-8) 0 var(--s-4); }
.legal__body p, .legal__body li { font-size: 17px; line-height: 1.65; color: var(--ink); margin: 0 0 var(--s-4); }
.legal__body ul { margin: 0 0 var(--s-4); padding-left: 1.2em; }
.legal__body li { margin-bottom: var(--s-2); }
.legal__date { color: var(--muted); font-size: var(--t-small); }
.legal__back { margin-top: var(--s-8); }
.legal__footer { border-top: 1px solid var(--line); padding: var(--s-5) 0; font-size: var(--t-small); color: var(--muted); }
.legal__footer .wrap { display: flex; justify-content: space-between; gap: var(--s-4); }
.legal__body ul { list-style: disc; }

/* phone: screens stay readable, shown from the part that matters and cut by their frame */
@media (max-width: 639px) {
  #app .panel > .frame__img, .sent > .frame__img { inset: 0 auto auto 0; width: 100%; transform: none; }
  .portal > .frame__img { inset: 0 auto auto -150px; width: 860px; height: auto; }
  .record > .frame__img { inset: 0 auto auto 0; width: 520px; height: auto; }
}

.legal__body p a { text-decoration: underline; text-underline-offset: 3px; }

/* short or narrow screens (a 1366x768 laptop, 200% zoom, a tablet): a section grows with what it holds, so no
   text runs into the next section; its pictures keep a readable height */
@media (max-height: 779px), (max-width: 1023px) {
  main > section:not(.hero), footer.closing { height: auto; min-height: calc(var(--h, 1) * 100svh); }
  main > section:not(.hero) > .wrap > .fill { flex: 1 0 auto; }
  main > section > .wrap > .portal, .record, .sent { flex: none; height: 360px; min-height: 0; }
}
@media (max-width: 639px) {
  main > section:not(.hero) { min-height: calc(var(--hm, var(--h, 1)) * 100lvh); }
  footer.closing { min-height: calc(var(--hm, var(--h, 1)) * 100lvh); }
  main > section > .wrap > .portal, .record { flex: 1 1 0; height: auto; min-height: 200px; }
  #faq .sent { flex: 1 1 0; height: auto; min-height: 120px; }
}
