/* billybot · landing neobrutalista. Palette presa dal logo. */

:root {
  --blue: #156ced;
  --blue-dark: #0d4fb3;
  --yellow: #feac1b;
  --orange: #fd7609;
  --cream: #faf1dc;
  --ink: #0a0a0a;
  --ink-soft: #2b2b2b;
  --white: #ffffff;

  --border: 3px solid var(--ink);
  --shadow: 6px 6px 0 0 var(--ink);
  --shadow-sm: 3px 3px 0 0 var(--ink);
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  background-color: var(--blue);
  /* Puntinato leggero sul blu, come la carta di un fumetto. */
  background-image: radial-gradient(rgb(255 255 255 / 0.13) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  color: var(--ink);
  line-height: 1.5;
  padding: 1rem;
  overflow-x: hidden;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

a {
  color: inherit;
}

.page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
}

/* --- card --- */

.card {
  background: var(--cream);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* --- hero --- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  display: block;
  width: 9.5rem;
  height: 9.5rem;
  margin-bottom: -1.75rem;
  position: relative;
  z-index: 1;
  border: var(--border);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
  background: var(--blue);
}

.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card {
  width: 100%;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.kicker {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  margin-bottom: 1rem;
  transform: rotate(-1.5deg);
}

h1 {
  font-size: clamp(1.9rem, 6.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hl {
  display: inline-block;
  background: var(--orange);
  color: var(--ink);
  border: var(--border);
  padding: 0 0.4rem;
  margin: 0.25rem 0;
  box-shadow: var(--shadow-sm);
  transform: rotate(-1deg);
}

.lead {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink-soft);
  max-width: 33rem;
  margin: 0 auto 1.75rem;
}

/* --- bottoni --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 1rem 1.75rem;
  border: var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.btn:hover {
  background: var(--orange);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 0 var(--ink);
}

.btn:active {
  transform: translate(6px, 6px);
  box-shadow: 0 0 0 0 var(--ink);
}

.btn:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px dashed var(--ink);
  outline-offset: 4px;
}

.btn-small {
  width: auto;
  font-size: 1rem;
  padding: 0.6rem 1.1rem;
  box-shadow: var(--shadow-sm);
  text-transform: none;
}

@media (min-width: 640px) {
  .btn {
    width: auto;
  }
  .hero-card {
    padding: 3.25rem 3rem 2.5rem;
  }
}

/* --- chip --- */

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.chips li {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 2px 2px 0 0 var(--ink);
}

.chips li:nth-child(2) {
  background: var(--yellow);
}

.chips li:nth-child(3) {
  background: var(--orange);
}

/* --- esempio di chat --- */

.demo {
  margin: 3rem auto 0;
  max-width: 25rem;
}

.phone {
  background: var(--white);
  border: var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1rem;
  transform: rotate(1.25deg);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--cream);
}

.chat-head img {
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.chat-name {
  font-weight: 700;
  line-height: 1.1;
}

.chat-sub {
  font-size: 0.7rem;
  color: var(--ink-soft);
}

.bubble {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 0.85rem;
  font-size: 0.85rem;
}

.bubble-title {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.bubble ol {
  margin: 0.6rem 0 0.6rem 1.1rem;
}

.bubble li + li {
  margin-top: 0.4rem;
}

.bubble-note {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.bubble-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.bubble-buttons span {
  text-align: center;
  font-weight: 700;
  font-size: 0.75rem;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0.35rem 0.25rem;
}

.chat-time {
  text-align: center;
  font-size: 0.65rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

.demo-caption {
  text-align: center;
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 1rem;
}

/* --- sezioni --- */

.section-title {
  display: table;
  margin: 4rem auto 2rem;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  background: var(--ink);
  color: var(--cream);
  padding: 0.25rem 1rem;
  border-radius: 8px;
  transform: rotate(-1.5deg);
}

.steps {
  list-style: none;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.step {
  position: relative;
  background: var(--cream);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.25rem 1.25rem 1.25rem;
  transition: transform 0.15s ease;
}

.step:hover {
  transform: translateY(-4px);
}

.step-num {
  position: absolute;
  top: -1.4rem;
  left: 1.25rem;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--blue);
  color: var(--white);
  border: var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.step-num-yellow {
  background: var(--yellow);
  color: var(--ink);
}

.step-num-orange {
  background: var(--orange);
  color: var(--ink);
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* --- FAQ --- */

.faq {
  display: grid;
  gap: 1rem;
}

.faq details {
  padding: 0;
  box-shadow: var(--shadow-sm);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1rem 3rem 1rem 1.25rem;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--yellow);
  font-size: 1.2rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
  background: var(--orange);
}

.faq details p {
  padding: 0 1.25rem 1.1rem;
  color: var(--ink-soft);
}

/* --- disclaimer e footer --- */

.disclaimer {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 3.5rem;
  background: var(--yellow);
  border: var(--border);
  border-radius: 12px;
  box-shadow: 4px 4px 0 0 var(--ink);
  padding: 1.1rem 1.25rem;
  font-size: 0.92rem;
}

.disclaimer svg {
  flex-shrink: 0;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  color: var(--cream);
  font-weight: 700;
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* --- 404 --- */

.notfound {
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-top: 2rem;
}

.notfound h1 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.notfound p {
  margin-bottom: 1.5rem;
}
