:root {
  --bg: #ffffff;
  --ink: #151515;
  --muted: #77736b;
  --line: #151515;
  --field: #fafaf7;
  --hi: #ffe45c;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* iPhone: niente scroll laterale (foto ruotate) né zoom del testo */
html, body { overflow-x: hidden; -webkit-text-size-adjust: 100%; }
main { overflow-x: clip; }
img { max-width: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px 40px;
}
.wrap {
  width: 100%;
  max-width: 540px;
  text-align: center;
}

/* Foto appoggiata sul foglio, senza cornice */
.photo {
  display: block;
  width: 190px;
  height: auto;
  margin: 0 auto 30px;
  transform: rotate(-3deg);
}
.photo-king { width: 200px; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 30%; transform: rotate(3deg); }

.label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.label b { color: var(--ink); font-weight: 500; }

h1 {
  font-size: clamp(34px, 7vw, 54px);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.nowrap { white-space: nowrap; }
.cursor {
  display: inline-block;
  width: .4em;
  height: .8em;
  margin-left: 8px;
  vertical-align: -0.02em;
  background: var(--ink);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.sub {
  font-family: "IBM Plex Mono", monospace;
  font-size: 15.5px;
  line-height: 1.65;
  color: #34322d;
  margin-bottom: 16px;
}
.proof {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 30px;
}
.proof b { color: var(--ink); font-weight: 600; }

/* Form */
form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
}
input[type=text], input[type=email] {
  flex: 1 1 160px;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--field);
  color: var(--ink);
}
input::placeholder { font-family: "IBM Plex Mono", monospace; font-size: 15px; color: #9a958b; }
input[type=text]:focus, input[type=email]:focus { outline: 2px solid var(--hi); outline-offset: 0; background: #fff; }
.consent {
  flex-basis: 100%;
  display: grid;
  gap: 7px;
  margin-top: 4px;
}
.consent label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.45;
  color: #3a3833;
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  accent-color: var(--ink);
  cursor: pointer;
}
.consent a { color: var(--ink); }
button {
  flex-basis: 100%;
  margin-top: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}
button:hover { background: #fff; color: var(--ink); }
button:disabled { opacity: .6; cursor: default; }
.note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
}
.msg.err { color: #b02a1f; font-size: 14px; margin-top: 12px; }

/* Thank you page */
.king { margin-bottom: 30px; }
.king .photo { margin-bottom: 12px; }
.king figcaption {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: var(--muted);
}
.body p {
  font-size: 16.5px;
  line-height: 1.65;
  color: #34322d;
  margin-bottom: 14px;
}
.body p:first-child { font-family: "IBM Plex Mono", monospace; font-size: 15.5px; }
.body .last {
  color: var(--ink);
  font-weight: 600;
  background: linear-gradient(transparent 55%, var(--hi) 55%);
}
.body .end { margin-top: 24px; margin-bottom: 0; }

.quote {
  margin: 44px auto 0;
  padding-top: 26px;
  border-top: 1px solid #e2ded5;
  max-width: 460px;
}
.quote p {
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  line-height: 1.7;
  color: #34322d;
}
.quote cite {
  display: block;
  margin-top: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}

footer {
  padding: 0 20px 26px;
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--muted);
}
footer a { color: var(--muted); }

@media (max-width: 520px) {
  main { padding: 40px 18px 32px; align-items: flex-start; }
  .photo { width: 160px; margin-bottom: 24px; }
  .photo-king { width: 170px; }
  .sub { font-size: 15px; }
  form input[type=text], form input[type=email] { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}
