
:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202820;
  background: #f3f6f1;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

.page {
  width: min(100% - 32px, 560px);
  margin: 0 auto;
  padding: 38px 0 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Intestazione */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 4px 34px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: #286447;
  font-size: 25px;
  font-weight: 800;
}

.brand-name {
  margin: 0;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.7px;
}

.brand-tagline {
  margin: 3px 0 0;
  color: #68736a;
  font-size: 13px;
}

/* Scheda invito */

.invite-card {
  background: white;
  border: 1px solid #e3e9e1;
  border-radius: 24px;
  padding: clamp(24px, 6vw, 38px);
  box-shadow: 0 16px 45px rgba(31, 57, 39, 0.07);
}

.invite-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #eaf3ed;
  color: #286447;
  font-size: 23px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #47775b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 7vw, 36px);
  line-height: 1.12;
  letter-spacing: -1.1px;
}

.intro {
  margin: 14px 0 20px;
  color: #566258;
  line-height: 1.55;
}

/* Stato del collegamento */

.status {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f2f5f1;
  color: #455248;
  font-size: 14px;
  line-height: 1.45;
}

.status.error {
  background: #fff0ed;
  color: #963d2d;
}

/* Istruzioni */

.steps {
  margin: 24px 0;
  padding-left: 22px;
  color: #3e4940;
  line-height: 1.55;
}

.steps li {
  padding-left: 5px;
  margin: 10px 0;
}

/* Pulsanti */

.actions {
  display: grid;
  gap: 11px;
}

.button {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 13px;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
}

.button[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.button-primary {
  color: white;
  background: #286447;
}

.button-secondary {
  color: #286447;
  background: white;
  border: 1px solid #cbd9ce;
}

/* Note e piè di pagina */

.fine-print {
  margin: 18px 0 0;
  color: #788179;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

footer {
  margin-top: auto;
  padding-top: 28px;
  color: #8a938b;
  font-size: 12px;
  text-align: center;
}

@media (min-width: 600px) {
  .page {
    padding-top: 56px;
  }
}
