/* ==========================================================================
   MYRIFLESSI — sito istituzionale
   Palette e typografia derivate dai token reali del prodotto
   (frontend/projects/ui-shared/src/styles/_tokens.scss) — stessi colori
   dell'app, non un identity a sé stante.
   ========================================================================== */

:root {
  /* ---- Superfici ---- */
  --paper: #faf9fa;
  --paper-raised: #ffffff;
  --paper-deep: #f2f0f2;

  /* ---- Inchiostro ---- */
  --ink: #221f22;
  --ink-soft: #57515a;
  --ink-faint: #857d84;

  /* ---- Mauve (primario, dal logo) ---- */
  --mauve-50: #faf7fa;
  --mauve-100: #f1ebf2;
  --mauve-200: #e0d4e2;
  --mauve-300: #cab7cd;
  --mauve-400: #aca0ae;
  --mauve-600: #825889;
  --mauve-700: #6a4270;
  --mauve-800: #4e3252;
  --mauve-900: #322334;

  /* ---- Gold (accento, dal logo) ---- */
  --gold-100: #f9f5eb;
  --gold-300: #eee4cd;
  --gold-500: #dabe81;
  --gold-800: #8c6a21;

  /* ---- Ice-blue (accento, dal logo) ---- */
  --ice-100: #eef5f6;
  --ice-300: #d9e6e8;
  --ice-500: #92b3b9;
  --ice-700: #4c6f76;

  /* ---- Rule / bordi ---- */
  --rule: #e4e1e4;
  --rule-soft: #efeced;

  /* ---- Tipografia ---- */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ---- Ombre (tinte di mauve scuro, non nero puro) ---- */
  --shadow-sm: 0 1px 3px rgba(50, 35, 52, 0.08);
  --shadow-md: 0 8px 24px rgba(50, 35, 52, 0.1);
  --shadow-lg: 0 20px 48px rgba(50, 35, 52, 0.16);

  /* ---- Raggi ---- */
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  color-scheme: light;
}

/* ---- Reset minimo ---- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  font: inherit;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}
p {
  margin: 0;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Layout ---- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.section--tint {
  background: var(--mauve-50);
}
.section--deep {
  background: var(--mauve-900);
  color: var(--mauve-100);
}
.section--deep h2,
.section--deep h3 {
  color: #fff;
}
.section-head {
  max-width: 680px;
  margin: 0 0 3rem;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mauve-700);
  margin-bottom: 0.9rem;
}
.section--deep .eyebrow {
  color: var(--gold-300);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}
h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}
.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-top: 1rem;
  line-height: 1.65;
}
.section--deep .lede {
  color: var(--mauve-200);
}

/* ---- Bottoni ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--mauve-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--mauve-700);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  border-color: var(--mauve-300);
  color: var(--mauve-700);
}
.btn-ghost:hover {
  background: var(--mauve-100);
  border-color: var(--mauve-400);
}
.btn-on-dark {
  background: #fff;
  color: var(--mauve-800);
}
.btn-on-dark:hover {
  background: var(--gold-300);
}
.btn-ghost-on-dark {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-ghost-on-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}
.btn-lg {
  padding: 1.05rem 2.1rem;
  font-size: 1.05rem;
}
.btn-block {
  width: 100%;
}

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Niente backdrop-filter: un filter/backdrop-filter su un antenato crea un
     containing block per i discendenti position:fixed (qui il menu mobile),
     ancorandoli alla sola altezza dell'header invece che al viewport intero
     — bug reale scoperto in test, non solo teorico. */
  background: var(--paper-raised);
  border-bottom: 1px solid var(--rule-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
  max-width: 1180px;
  margin: 0 auto;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand img {
  height: 30px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links li {
  display: flex;
  align-items: center;
}
.nav-links a {
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav-links a:hover {
  color: var(--mauve-700);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--ink);
}
.nav-toggle svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 1080px) {
  .nav-links {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--paper-raised);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border-bottom: 1px solid var(--rule);
  }
  .nav-links a {
    width: 100%;
    height: auto;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--rule-soft);
  }
  body.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

/* ---- Hero ---- */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  position: relative;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.7rem);
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--mauve-600);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--rule);
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.hero-trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--mauve-600);
  flex-shrink: 0;
}
.hero-art {
  position: relative;
}
.hero-art-card {
  background: var(--paper-raised);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--rule-soft);
}
.hero-art-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}
.hero-art-header .eyebrow {
  margin: 0;
}
.hero-triangle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  text-align: center;
}
.hero-node {
  background: var(--mauve-50);
  border: 1px solid var(--mauve-200);
  border-radius: var(--radius-md);
  padding: 1.1rem 0.7rem;
}
.hero-node .node-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 0.6rem;
  color: var(--mauve-600);
}
.hero-node span {
  font-size: 0.82rem;
  font-weight: 700;
  display: block;
}
.hero-node small {
  font-size: 0.72rem;
  color: var(--ink-faint);
}
.hero-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.9rem 0;
  color: var(--gold-800);
}
.hero-flow svg {
  width: 22px;
  height: 22px;
}
.hero-stat-row {
  display: flex;
  justify-content: space-between;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--rule);
}
.hero-stat {
  text-align: left;
}
.hero-stat b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  display: block;
  color: var(--mauve-700);
}
.hero-stat small {
  font-size: 0.75rem;
  color: var(--ink-faint);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  opacity: 0.55;
}
.hero-blob--1 {
  width: 340px;
  height: 340px;
  background: var(--mauve-200);
  top: -120px;
  right: -80px;
}
.hero-blob--2 {
  width: 260px;
  height: 260px;
  background: var(--gold-300);
  bottom: -100px;
  left: -60px;
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
}

/* ---- Statement centrato ---- */
.statement {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.statement blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.45;
  max-width: 880px;
  margin: 0 auto;
  color: var(--mauve-800);
}
.statement blockquote::before,
.statement blockquote::after {
  content: none;
}

/* ---- Griglie feature ---- */
.grid {
  display: grid;
  gap: 1.6rem;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 940px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--paper-raised);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  background: var(--mauve-100);
  color: var(--mauve-700);
}
.card-icon svg {
  width: 24px;
  height: 24px;
}
.card--gold .card-icon {
  background: var(--gold-100);
  color: var(--gold-800);
}
.card--ice .card-icon {
  background: var(--ice-100);
  color: var(--ice-700);
}
.card h3 {
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- Split (testo + immagine/lista) ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split.reverse .split-media {
  order: 2;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split.reverse .split-media {
    order: 0;
  }
}
.split-list {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.split-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.split-list .leaf {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--mauve-600);
}
.split-list strong {
  display: block;
  font-size: 0.98rem;
}
.split-list span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.split-media {
  background: var(--paper-raised);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.6rem;
}
.mock-header {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}
.mock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rule);
}
.mock-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0.2rem;
  border-bottom: 1px solid var(--rule-soft);
}
.mock-row:last-child {
  border-bottom: none;
}
.mock-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mauve-200);
  flex-shrink: 0;
}
.mock-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--rule);
}
.mock-bar.short {
  width: 40%;
}
.mock-bar.mid {
  width: 68%;
}
.mock-bar.long {
  width: 88%;
}
.mock-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--ice-100);
  color: var(--ice-700);
  font-weight: 600;
  white-space: nowrap;
}
.mock-pill.gold {
  background: var(--gold-100);
  color: var(--gold-800);
}

/* ---- Attività / motori ---- */
.activity-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  margin: 0.25rem 0.35rem 0 0;
}
.activity-tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ---- Compliance / trust section (scura) ---- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.6rem;
}
@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}
.trust-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}
.trust-card .card-icon {
  background: rgba(218, 190, 129, 0.16);
  color: var(--gold-300);
}
.trust-card h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}
.trust-card p {
  color: var(--mauve-200);
  font-size: 0.92rem;
}
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.4rem;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}
.trust-badge svg {
  width: 16px;
  height: 16px;
  color: var(--gold-300);
}

/* ---- Timeline "come funziona" ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.6rem;
  counter-reset: step;
}
@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step {
  position: relative;
  padding-left: 3.4rem;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mauve-600);
  width: 2.6rem;
  height: 2.6rem;
  border: 1.5px solid var(--mauve-300);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 {
  margin-bottom: 0.4rem;
}
.step p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---- CTA finale ---- */
.cta-final {
  background: linear-gradient(135deg, var(--mauve-700), var(--mauve-900));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 3.8rem);
  text-align: center;
  margin: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.cta-final h2 {
  color: #fff;
}
.cta-final .lede {
  color: var(--mauve-200);
  max-width: 560px;
  margin-inline: auto;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--mauve-900);
  color: var(--mauve-200);
  padding: 3.6rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.footer-brand img {
  height: 26px;
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: 0.88rem;
  color: var(--mauve-300);
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-300);
  margin-bottom: 1rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-col a {
  font-size: 0.9rem;
  color: var(--mauve-200);
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  margin-top: 2.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: var(--mauve-300);
}

/* ==========================================================================
   Pagina Iscriviti
   ========================================================================== */
.signup-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
}
.signup-side {
  background: radial-gradient(circle at 20% 20%, var(--mauve-700), var(--mauve-900) 70%);
  color: #fff;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.signup-side-top .brand img {
  height: 28px;
}
.signup-side-mid h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  max-width: 420px;
}
.signup-side-mid p {
  color: var(--mauve-200);
  margin-top: 1rem;
  max-width: 400px;
}
.signup-side-list {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.signup-side-list li {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  font-size: 0.92rem;
  color: #fff;
}
.signup-side-list svg {
  width: 20px;
  height: 20px;
  color: var(--gold-300);
  flex-shrink: 0;
}
.signup-side-bottom {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--mauve-300);
}
.signup-side::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(218, 190, 129, 0.12);
  bottom: -160px;
  right: -140px;
}
/* Media query DOPO le regole base: a parità di specificità vince l'ultima
   dichiarazione nell'ordine del file, non quella "logicamente" più
   specifica — se questo blocco stesse prima di .signup-side sopra, quella
   regola base (display:flex) vincerebbe sempre, anche sotto 980px. */
@media (max-width: 980px) {
  .signup-shell {
    grid-template-columns: 1fr;
  }
  .signup-side {
    display: none;
  }
}

.signup-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.5rem);
}
.signup-form-wrap {
  max-width: 460px;
  width: 100%;
}
.signup-form-wrap .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}
.signup-form-wrap .back-link svg {
  width: 16px;
  height: 16px;
}
.signup-form-wrap h1 {
  font-size: clamp(1.6rem, 3vw, 2rem);
}
.signup-form-wrap > .lede {
  margin-bottom: 2rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 480px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}
.field {
  margin-bottom: 1.2rem;
}
.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  min-height: 1.3em;
  margin-bottom: 0.4rem;
}
.field label .req {
  color: var(--mauve-600);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 0.95rem;
  background: var(--paper-raised);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--mauve-500, var(--mauve-600));
  box-shadow: 0 0 0 3px var(--mauve-100);
}
.field textarea {
  resize: vertical;
  min-height: 90px;
}
.field small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.field.has-error input,
.field.has-error select {
  border-color: #c1554d;
}
.field-error {
  display: none;
  color: #c1554d;
  font-size: 0.78rem;
  margin-top: 0.35rem;
}
.field.has-error .field-error {
  display: block;
}

.check-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.check-row input {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: var(--mauve-600);
  flex-shrink: 0;
}
.check-row a {
  color: var(--mauve-700);
  font-weight: 600;
  text-decoration: underline;
}

.form-footer-note {
  text-align: center;
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-top: 1.4rem;
}
.form-footer-note a {
  color: var(--mauve-700);
  font-weight: 700;
}

.form-status {
  display: none;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
}
.form-status.show {
  display: flex;
}
.form-status.success {
  background: #e7f3ed;
  color: #2f6b4c;
}
.form-status.error {
  background: #fbeae8;
  color: #a3392f;
}
.form-status svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---- Utility ---- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
