/* Rispondo — layout: la pagina si legge come un registro chiamate.
   Rosso del marchio per azioni e chiamate bloccate, verde solo per le chiamate che passano. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2-variations"),
       url(fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(fonts/instrument-sans-latin-wght-normal.woff2) format("woff2-variations"),
       url(fonts/instrument-sans-latin-wght-normal.woff2) format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2");
}

:root {
  --paper: #f6f4f4;
  --surface: #ffffff;
  --ink: #1b1314;
  --muted: #6a5d5e;
  --line: #e4dcdc;
  --brand: #c10f1f;
  --brand-text: #b10d1c;
  --brand-soft: #f9e2e3;
  --on-brand: #ffffff;
  --answer: #15804b;
  --answer-soft: #dff0e5;
  --decline: #c10f1f;
  --decline-soft: #f9e2e3;
  --on-accent: #ffffff;

  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.6vw, 4.6rem);

  --radius: 14px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131010;
    --surface: #1c1717;
    --ink: #f2ebeb;
    --muted: #aa9d9d;
    --line: #342b2b;
    --brand: #d8212f;
    --brand-text: #ff6b74;
    --brand-soft: #3c1a1d;
    --on-brand: #ffffff;
    --answer: #47c486;
    --answer-soft: #163022;
    --decline: #ff5a64;
    --decline-soft: #3c1a1d;
    --on-accent: #0b1a11;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #131010;
  --surface: #1c1717;
  --ink: #f2ebeb;
  --muted: #aa9d9d;
  --line: #342b2b;
  --brand: #d8212f;
  --brand-text: #ff6b74;
  --brand-soft: #3c1a1d;
  --on-brand: #ffffff;
  --answer: #47c486;
  --answer-soft: #163022;
  --decline: #ff5a64;
  --decline-soft: #3c1a1d;
  --on-accent: #0b1a11;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--f-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.label {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-mark { width: 30px; height: 30px; flex: none; border-radius: 8px; }
.brand .tld { color: var(--muted); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 22px; font-size: var(--step--1); }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav .btn { color: var(--on-brand); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  text-decoration: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: var(--step--1); }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  min-width: 190px;
  transition: transform .15s ease;
}
.store:hover { transform: translateY(-1px); }
.store svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 0.72rem; opacity: .8; }
.store strong { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero h1 { font-size: var(--step-4); font-weight: 700; margin-block: 14px 22px; }
.hero h1 em { font-style: normal; color: var(--brand-text); }
.hero .lede { font-size: var(--step-1); color: var(--muted); max-width: 34ch; line-height: 1.45; margin-bottom: 30px; }
.hero .fine { margin-top: 16px; font-size: var(--step--1); color: var(--muted); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
}

/* Telefono illustrato */
.phone {
  width: min(320px, 100%);
  margin-inline: auto;
  aspect-ratio: 9 / 18.5;
  max-width: 100%;
  border-radius: 46px;
  padding: 12px;
  background: var(--ink);
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--ink) 55%, transparent);
}
.screen {
  height: 100%;
  border-radius: 36px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.screen .notch {
  width: 96px; height: 26px; border-radius: 20px;
  background: var(--ink);
  margin: 10px auto 0;
  flex: none;
}
.incoming {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 34px 20px 26px;
  gap: 6px;
}
.incoming .number {
  font-family: var(--f-mono);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  margin-top: 6px;
}
.incoming .where { color: var(--muted); font-size: 0.85rem; }
.tag-spam {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--decline-soft);
  color: var(--decline);
  font-weight: 600;
  font-size: 0.82rem;
}
.tag-spam::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
}
.call-actions {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  width: 100%;
  padding-inline: 10px;
}
.call-btn {
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
}
.call-btn svg { width: 26px; height: 26px; fill: #fff; }
.call-btn.decline { background: var(--decline); }
.call-btn.accept { background: var(--answer); opacity: .25; }
.call-actions figcaption { font-size: 0.75rem; color: var(--muted); text-align: center; margin-top: 6px; }
.call-actions figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.blocked-banner {
  margin: 0 14px 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--ink);
  font-size: 0.8rem;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
}
.blocked-banner .dot {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: var(--brand);
  display: grid; place-items: center;
}
.blocked-banner .dot svg { width: 16px; height: 16px; fill: var(--on-brand); }

@media (prefers-reduced-motion: no-preference) {
  .call-btn.decline { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--decline) 45%, transparent); }
    50% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--decline) 0%, transparent); }
  }
}

/* ---------- Sezioni ---------- */
section { scroll-margin-top: 80px; }
.section { padding-block: clamp(56px, 9vw, 104px); border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(32px, 5vw, 52px); max-width: 640px; }
.section-head h2 { font-size: var(--step-3); font-weight: 700; }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.45; }

/* Registro chiamate */
.log {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.log-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.log-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.log-row:last-child { border-bottom: 0; }
.log-row .ico { width: 22px; height: 22px; }
.log-row .ico.no { fill: var(--decline); }
.log-row .ico.ok { fill: var(--answer); }
.log-row .num { font-family: var(--f-mono); font-size: 0.95rem; overflow-wrap: anywhere; }
.log-row .why { color: var(--muted); font-size: var(--step--1); }
.log-row .time { font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pill {
  font-size: 0.75rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.pill.no { background: var(--decline-soft); color: var(--decline); }
.pill.ok { background: var(--answer-soft); color: var(--answer); }
@media (max-width: 560px) {
  .log-row { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .log-row .time { display: none; }
}
.log-note { margin-top: 12px; font-size: 0.8rem; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Funzionalità */
.features { display: grid; gap: 0; border-top: 1px solid var(--line); }
.feature {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
.feature .fi {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-soft);
  display: grid; place-items: center;
}
.feature .fi svg { width: 22px; height: 22px; fill: var(--brand-text); }
.feature h3 { font-size: var(--step-1); font-weight: 600; margin-bottom: 4px; }
.feature p { color: var(--muted); }

/* Attivazione */
.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 760px) { .platforms { grid-template-columns: minmax(0, 1fr); } }
.platform {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: grid;
  gap: 18px;
  align-content: start;
}
.platform h3 { font-size: var(--step-2); display: flex; align-items: center; gap: 12px; }
.platform h3 svg { width: 26px; height: 26px; fill: var(--ink); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
}
.steps li::before {
  content: counter(s);
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 0.85rem;
  color: var(--muted);
}
.path {
  font-family: var(--f-mono);
  font-size: 0.84rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 8px;
  overflow-wrap: anywhere;
}

/* Download */
.download {
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
  padding: clamp(32px, 6vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 32px;
  align-items: center;
}
.download h2 { font-size: var(--step-3); }
.download p { opacity: .8; margin-top: 12px; max-width: 46ch; }
.download .store { background: var(--paper); color: var(--ink); }
@media (max-width: 760px) { .download { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding-block: 20px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--step-1);
  line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--f-mono);
  font-weight: 500;
  color: var(--muted);
  font-size: 1.3rem;
  flex: none;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding-bottom: 22px; color: var(--muted); max-width: 68ch; display: grid; gap: 10px; }

/* Supporto */
.support {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 760px) { .support { grid-template-columns: minmax(0, 1fr); } }
.support-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: grid; gap: 10px; align-content: start;
  background: var(--surface);
}
.support-card h3 { font-size: var(--step-1); }
.support-card p { color: var(--muted); }
.copy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.copy-row .addr { font-family: var(--f-mono); font-size: 0.95rem; user-select: all; overflow-wrap: anywhere; }
.copy-btn {
  font: inherit; font-size: 0.8rem; font-weight: 600;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 4px 12px; cursor: pointer;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px));
  font-size: var(--step--1);
  color: var(--muted);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Pagine legali ---------- */
.legal { padding-block: clamp(40px, 7vw, 80px); }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: var(--step-3); margin-block: 12px 8px; }
.legal .updated { color: var(--muted); font-size: var(--step--1); margin-bottom: 28px; }
.legal h2 { font-size: var(--step-1); margin-top: 36px; margin-bottom: 10px; }
.legal p, .legal li { color: var(--ink); max-width: 68ch; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; margin: 10px 0; }
.legal .draft-note {
  border: 1px dashed var(--decline);
  background: var(--decline-soft);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: var(--step--1);
  margin-bottom: 24px;
}
.ph { background: var(--brand-soft); padding: 0 4px; border-radius: 4px; font-family: var(--f-mono); font-size: 0.9em; }
.legal table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.table-scroll { overflow-x: auto; margin-block: 12px; }
