/* App Drive landing page. Same palette as the app (AppPalette): neutrals and
   black as the only accent; white in the dark theme. No external fonts. */
:root {
  --ink: #0a0a0a;
  --on-ink: #ffffff;
  --muted: #6b7280;
  --line: #e5e7eb;
  --strong-line: #d1d5db;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --subtle: #f1f2f4;
  --success: #15803d;
  --error: #dc2626;
  --warning: #d97706;
  --tile-1: #0a0a0a; --tile-2: #18181b; --tile-3: #27272a; --tile-4: #3f3f46; --tile-5: #52525b; --tile-6: #71717a;
  --shadow: 0 1px 2px rgb(16 24 40 / 4%), 0 12px 32px -12px rgb(16 24 40 / 18%);
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #fafafa;
    --on-ink: #0a0a0a;
    --muted: #9ca3af;
    --line: #26272b;
    --strong-line: #3f3f46;
    --bg: #0a0a0a;
    --surface: #141416;
    --subtle: #1c1c1f;
    --success: #4ade80;
    --error: #f87171;
    --warning: #fbbf24;
    --tile-1: #27272a; --tile-2: #3f3f46; --tile-3: #1f1f23; --tile-4: #52525b; --tile-5: #34343a; --tile-6: #46464d;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 16px 40px -16px rgb(0 0 0 / 70%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }

/* --- buttons --------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px;
  background: var(--ink); color: var(--on-ink);
  border: 1px solid var(--ink); border-radius: 10px;
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: opacity .15s ease, transform .15s ease;
}
.button:hover { opacity: .88; }
.button:active { transform: translateY(1px); }
.button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px;
}
.button-ghost { background: var(--surface); color: var(--ink); border-color: var(--strong-line); }
.button-small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.button-wide { width: 100%; }
.button[disabled] { opacity: .5; cursor: progress; }

/* --- header ---------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; text-decoration: none; letter-spacing: -0.01em; }
.logo { width: 30px; height: 30px; }
.logo-bg { fill: var(--ink); }
.logo-fg { fill: var(--on-ink); }
.logo-ring { fill: none; stroke: var(--on-ink); stroke-width: 1.6; }
.top-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.top-nav a:not(.button) { color: var(--muted); text-decoration: none; }
.top-nav a:not(.button):hover { color: var(--ink); }
@media (max-width: 960px) { .top-nav a:not(.button):not(.top-login):not(.top-lang) { display: none; } }
.top-nav a.top-login { color: var(--ink); font-weight: 600; }

/* --- hero ------------------------------------------------------------ */
.hero { position: relative; padding: 72px 0 80px; overflow: hidden; }
/* Faint grid behind the hero, fading out (on its own layer, not the text). */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
}
main { position: relative; z-index: 0; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } .hero { padding-top: 48px; } }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 500;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 20%, transparent); }
h1 { margin-top: 20px; font-size: clamp(36px, 6vw, 60px); font-weight: 800; letter-spacing: -0.035em; }
.lead { margin-top: 20px; font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hint { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* CSS copy of the app's home screen */
.phone {
  justify-self: center; width: min(320px, 100%);
  padding: 12px; border-radius: 44px;
  background: var(--ink);
  box-shadow: var(--shadow);
}
@media (prefers-color-scheme: dark) { .phone { background: #2a2a2e; } }
.phone-screen { border-radius: 33px; background: #f6f7f9; color: #0a0a0a; padding: 18px 18px 40px; min-height: 440px; }
@media (prefers-color-scheme: dark) { .phone-screen { background: #0a0a0a; color: #fafafa; } }
.phone-bar { display: flex; justify-content: flex-end; }
.phone-menu {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 30px; border-radius: 15px; background: #fff; border: 1px solid #e5e7eb;
  font-size: 11px; letter-spacing: 1px; font-weight: 700;
}
@media (prefers-color-scheme: dark) { .phone-menu { background: #141416; border-color: #26272b; } }
.phone-title { margin-top: 14px; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.phone-sub { font-size: 13px; color: #6b7280; }
.phone-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 8px; margin-top: 20px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.icon {
  position: relative; display: grid; place-items: center;
  width: 100%; aspect-ratio: 1; max-width: 56px; border-radius: 14px;
  color: #fff; font-weight: 800; font-size: 22px;
  box-shadow: 0 2px 0 rgb(0 0 0 / 8%);
}
.t1 { background: var(--tile-1); } .t2 { background: var(--tile-2); } .t3 { background: var(--tile-3); }
.t4 { background: var(--tile-4); } .t5 { background: var(--tile-5); } .t6 { background: var(--tile-6); }
.label { font-size: 11px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge {
  position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #f6f7f9; background-position: center; background-repeat: no-repeat; background-size: 12px;
}
@media (prefers-color-scheme: dark) { .badge { border-color: #0a0a0a; } }
.badge-lock { background-color: #0a0a0a; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17 9h-1V7a4 4 0 0 0-8 0v2H7a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2zm-7-2a2 2 0 1 1 4 0v2h-4V7z'/%3E%3C/svg%3E"); }
.badge-team { background-color: #2563eb; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M2 19c0-3.3 3.1-5 7-5s7 1.7 7 5v1H2v-1zm15-4.9c2.9.2 5 1.6 5 4.4v1.5h-4.5v-1c0-1.9-.2-3.4-.5-4.9z'/%3E%3C/svg%3E"); }
.badge-off { background-color: #15803d; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E"); }

/* --- strip ----------------------------------------------------------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.strip-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-row p { padding: 24px 0; display: flex; flex-direction: column; text-align: center; }
.strip-row p + p { border-left: 1px solid var(--line); }
.strip-row strong { font-size: 15px; }
.strip-row span { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) {
  .strip-row { grid-template-columns: 1fr; }
  .strip-row p + p { border-left: 0; border-top: 1px solid var(--line); }
  .strip-row p { padding: 16px 0; }
}

/* --- sections -------------------------------------------------------- */
.section { padding: 96px 0; }
@media (max-width: 640px) { .section { padding: 64px 0; } }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
h2 { margin-top: 10px; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.section-lead { margin-top: 14px; color: var(--muted); font-size: 18px; max-width: 36em; }
.small { margin-top: 16px; font-size: 14px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card {
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.section-alt .card { background: var(--bg); }
.card h3 { font-size: 17px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; }

.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: none; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.steps li { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.step-n {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--ink); color: var(--on-ink); font-weight: 700; font-size: 15px;
}
.steps h3 { margin-top: 16px; font-size: 17px; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 15px; }

.security { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 800px) { .security { grid-template-columns: 1fr; gap: 24px; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li {
  position: relative; padding: 14px 16px 14px 48px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); font-size: 15px;
}
.checks li::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center / 13px no-repeat;
}
@media (prefers-color-scheme: dark) {
  .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E"); }
}

/* --- invite form ----------------------------------------------------- */
.invite-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .invite-grid { grid-template-columns: 1fr; gap: 32px; } }
.form {
  padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  box-shadow: var(--shadow); display: grid; gap: 16px;
}
@media (max-width: 520px) { .form { padding: 20px; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
label { font-size: 14px; font-weight: 600; }
.req { color: var(--error); }
.optional { font-weight: 400; color: var(--muted); }
input[type=email], input[type=text], textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--strong-line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: 15px/1.4 var(--font);
}
textarea { resize: vertical; min-height: 84px; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }
input[aria-invalid=true] { border-color: var(--error); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: 14px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.consent a { color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.6em; font-size: 14px; }
.form-msg.error { color: var(--error); }
.form-done { text-align: center; padding: 24px 8px; }
.form-done h3 { font-size: 22px; }
.form-done p { margin-top: 8px; color: var(--muted); }
.form-done .done-icon {
  width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%; background: var(--success);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E");
  background-position: center; background-repeat: no-repeat; background-size: 26px;
}

/* --- FAQ ------------------------------------------------------------- */
.faq { max-width: 760px; }
.faq h2 { margin-bottom: 24px; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 18px 32px 18px 0; position: relative; font-weight: 600; font-size: 17px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--muted); }
details[open] summary::after { content: "−"; }
details p { padding: 0 0 18px; color: var(--muted); }

/* --- footer ---------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* --- simple pages (privacy, thanks) --------------------------------- */
.page { padding: 56px 0 96px; }
.page .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 8px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; }
.doc h3 { font-size: 17px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc p { margin: 12px 0; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc blockquote { margin: 16px 0; padding: 12px 16px; border-left: 3px solid var(--strong-line); background: var(--surface); color: var(--muted); border-radius: 0 8px 8px 0; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; background: var(--surface); }
.doc code { font-size: 13px; background: var(--subtle); padding: 1px 5px; border-radius: 5px; }
.center { text-align: center; }
.center .button { margin-top: 28px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- agency version: comparison, perks, qualifying form -------------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare-col { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare-good { border-color: var(--ink); }
.compare-col h3 { font-size: 17px; margin-bottom: 14px; }
.x-list, .perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.x-list li, .perks li { position: relative; padding-left: 30px; font-size: 15px; color: var(--muted); }
.x-list li::before {
  content: "×"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; line-height: 1; color: var(--error);
  background: color-mix(in srgb, var(--error) 12%, transparent);
}
.checks-plain li { padding: 0 0 0 30px; border: 0; background: none; color: var(--ink); }
.checks-plain li::before { left: 0; top: 2px; margin-top: 0; }
.perks { margin-top: 24px; }
.perks li { color: var(--ink); }
.perks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.note { margin-top: 24px; color: var(--muted); font-size: 15px; }

select {
  width: 100%; padding: 12px 40px 12px 14px; border: 1px solid var(--strong-line); border-radius: 10px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b7280'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") right 10px center / 20px no-repeat;
  color: var(--ink); font: 15px/1.4 var(--font); appearance: none; -webkit-appearance: none;
}
select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }
fieldset.choice { border: 0; margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--subtle); }
fieldset.choice legend { float: left; width: 100%; padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
fieldset.choice label { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 14px; padding: 4px 0; clear: both; }
fieldset.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); flex: none; }

.phone-brand { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 14px; font-weight: 700; }
.phone-logo {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px;
  background: #1a73e8; color: #fff; font-size: 13px; font-weight: 800;
}
.phone-title { margin-top: 10px; }

/* --- pricing ------------------------------------------------------------ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; max-width: 1080px; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 28px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.plan-pro { border: 2px solid var(--ink); box-shadow: var(--shadow); }
.plan h3 { font-size: 22px; }
.plan-for { margin-top: 6px; color: var(--muted); font-size: 15px; }
.plan-badge {
  position: absolute; top: -13px; left: 24px; padding: 3px 10px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 600;
}
.price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; }
.price strong { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price span { color: var(--muted); font-size: 15px; }
.plan .perks { margin: 22px 0 26px; flex: 1; align-content: start; }
.plan .perks li { font-size: 15px; }
.tag {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; vertical-align: 2px;
  background: var(--ink); color: var(--on-ink); font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.card-pro { border-color: var(--strong-line); }

/* Preorder offer after the request (Stripe). */
.preorder { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); text-align: left; }
.preorder p:first-child { color: var(--ink); font-size: 15px; margin-bottom: 14px; }

/* Language switch (IT / EN), visible on phones too. */
.top-nav a.top-lang {
  color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-decoration: none;
  border: 1px solid var(--strong-line); border-radius: 999px; padding: 3px 9px;
}
.top-nav a.top-lang:hover { border-color: var(--ink); }
/* Phones: brand, language, login and invite on one line. */
.brand span, .top-nav a { white-space: nowrap; }
@media (max-width: 480px) {
  .top-nav { gap: 10px; }
  .top-nav .button-small { padding: 0 10px; font-size: 13px; }
  .brand { gap: 8px; }
  .brand span { font-size: 15px; }
}
@media (max-width: 380px) {
  /* The logo is enough on the smallest phones. */
  .top .brand span { display: none; }
}

/* "Preordina" under the plans, when preorders are open. */
.preorder-note {
  margin-top: 20px; max-width: 880px; padding: 14px 18px; border-radius: var(--radius);
  border: 1px dashed var(--strong-line); background: var(--surface); font-size: 15px;
}
.preorder-note a { font-weight: 600; }

/* Guide (/guida, /en/guide): screenshots and the table of contents. */
.guide img { display: block; width: 100%; height: auto; margin: 20px 0 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.guide img[src*="telefono"] { width: auto; max-width: min(320px, 100%); max-height: 640px; margin-inline: auto; border-radius: 24px; }
.guide h2 { scroll-margin-top: 84px; padding-top: 8px; }
.guide h3 { scroll-margin-top: 84px; }
.guide ol li a, .guide p a { color: var(--ink); text-decoration-color: var(--strong-line); text-underline-offset: 3px; }
.guide td:first-child { white-space: nowrap; }
@media (max-width: 600px) { .guide td:first-child { white-space: normal; } }
.guide img[src$="login.jpg"] { max-width: 400px; margin-inline: auto; }

/* 404 page. */
.cta-center { justify-content: center; }
.cta-center .button { margin-top: 0; }

/* Errors and AI: a small preview of the dashboard. */
.monitor-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .monitor-grid { grid-template-columns: 1fr; gap: 32px; } }
.monitor-list { margin-top: 28px; }
.section-line { border-top: 1px solid var(--line); }
.monitor {
  padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  box-shadow: var(--shadow); font-size: 14px;
}
.monitor-title { font-weight: 700; }
.monitor-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.monitor-kpis p { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.monitor-kpis strong { display: block; font-size: 20px; letter-spacing: -0.02em; }
.monitor-kpis span { color: var(--muted); font-size: 12px; }
.monitor-kpis .bad strong { color: var(--warning); }
.monitor-chart {
  display: flex; align-items: flex-end; gap: 5px; height: 96px; margin-top: 16px; padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
}
.monitor-chart span { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: var(--ink); opacity: .75; position: relative; }
.monitor-chart span.err::after {
  content: ""; position: absolute; left: 50%; top: -12px; width: 7px; height: 7px; margin-left: -3.5px;
  border-radius: 50%; background: var(--error);
}
.monitor-issue { margin-top: 16px; padding: 14px; border: 1px solid var(--warning); border-radius: 12px; }
.monitor-tags { display: flex; gap: 6px; }
.monitor-tags span { padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.monitor-tags .sev { color: #ea580c; background: rgb(234 88 12 / 14%); }
.monitor-tags .state { color: var(--muted); background: var(--subtle); }
.monitor-issue-title { margin-top: 8px; font-weight: 700; font-size: 15px; }
.monitor-issue-cause { margin-top: 4px; color: var(--muted); }
.monitor-actions { display: flex; gap: 14px; margin-top: 10px; font-weight: 600; font-size: 13px; }
.monitor-actions span:last-child { color: var(--muted); font-weight: 500; }

/* Cookie notice (cookie.js): technical cookies only, information notice. */
.cookie-notice {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  max-width: 720px; margin: 0 auto; padding: 14px 16px;
  display: flex; gap: 16px; align-items: center;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.cookie-notice p { margin: 0; flex: 1; font-size: 14px; line-height: 1.5; color: var(--muted); }
.cookie-notice a { color: var(--ink); }
.cookie-notice .button { flex: none; }
@media (max-width: 520px) {
  .cookie-notice { flex-direction: column; align-items: stretch; }
}
