/* ============================================================
   Judgy — sito vetrina

   Direzione: "la scheda tecnica". La pagina misura, etichetta e
   quota, e dice anche cosa Judgy non fa. Niente ornamenti.

   Due marcatori portano informazione, non decorano:
     arancio --judgy = piano Base      verde --pro = piano Pro
   Il verde compare solo dove si parla del Pro. Se lo si usa altrove,
   il lettore smette di poterlo leggere a colpo d'occhio.

   QUESTO FOGLIO E' LA BASE CONDIVISA: caratteri, token, marchio,
   pulsanti, pagine legali, banner cookie e pop-up «Scrivici». Le
   regole che esistono solo sulla homepage stanno in home.css, che
   index.html carica subito dopo questo.

   CHI CARICA QUESTO FOGLIO (prima di cancellare un selettore,
   guarda qui):
     - index.html                 il sito, insieme a home.css
     - terms.html, privacy.html, refund.html, cookies.html,
       legal.html, delete-account.html        blocco .legal-*
     - terms-2026-08-31.html e gli altri testi archiviati: i loro
       byte sostengono un termsSha256 gia' scritto. I file non si
       toccano, ma si disegnano con questo foglio — .legal-*, .brand,
       .brand-logo e .skip-link devono sopravvivere.
     - cookie-consent.js          inietta .cookie-* su ognuna delle
       pagine sopra, e usa .button / .button-solid / .button-ghost

   Inter e IBM Plex Mono restano dichiarati qui ma la homepage non li
   usa piu': un @font-face scarica il file solo se un testo lo chiede.
   I temi del menu ospite conservano i propri alias "Menu ..." in
   assets/fonts/menu-fonts.css.
   ============================================================ */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/fonts/figtree-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin-v1.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;

  /* superfici */
  --paper: #fffcf7;
  --paper-sunk: #f7f1e6;
  --card: #ffffff;
  --card-edge: #eee5d4;

  /* inchiostro */
  --ink: #211d16;
  --ink-soft: #6e6659;
  --ink-faint: #8d8474;
  --cream: #f4efe2; /* testo sul fondo scuro del footer */

  /* filetti */
  --rule: #ddd3bf;
  --track-off: #e6dcc8; /* binario dell'interruttore cookie, spento */

  /* i due marcatori di piano */
  --judgy: #f15a24;
  --judgy-deep: #c53e0e;
  --judgy-tint: #faeee4;
  --pro: #1e4433;
  --pro-tint: #eef3ef; /* superficie del Pro: card e colonna della tabella */
  --pro-edge: #c9d8cd;

  /* tipografia */
  --display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --t-xs: 0.79rem;
  --t-sm: 0.92rem;
  --t-lg: clamp(1.06rem, 0.99rem + 0.32vw, 1.2rem);
  --t-h3: clamp(1.14rem, 1.04rem + 0.45vw, 1.34rem);
  --t-h2: clamp(1.8rem, 1.36rem + 2vw, 2.6rem);
  --t-h1: clamp(2.3rem, 1.55rem + 3.4vw, 3.7rem);

  /* spazio */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --section-y: clamp(72px, 9vw, 136px);
  --gutter: clamp(20px, 5vw, 40px);

  /* misure */
  --max: 1120px;
  --max-text: 66ch;
  --header-h: 72px;
  --radius: 10px;
  --r-sm: 6px;
  --r-lg: 16px;

  /* elevazione — due sole, e la seconda solo per il menu a tendina */
  --shadow-1: 0 1px 2px rgba(46, 36, 20, 0.05);
  --shadow-2: 0 18px 44px rgba(46, 36, 20, 0.14);

  /* piani */
  --z-header: 100;
  --z-nav: 200;
  --z-skip: 300;
  --z-cookie: 900;
  --z-modal: 1000; /* il pop-up «Scrivici» copre anche il banner cookie */

  /* moto: interazioni fra 150 e 220 ms, ingressi a 450 ms, una volta */
  --dur-1: 160ms;
  --dur-2: 220ms;
  --dur-reveal: 450ms;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-y: 16px;
  --stagger: 70ms;
}

/* ---------- base ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* la pagina non scorre in orizzontale sui touch: `clip`, dove
     supportato, non crea un contenitore di scroll; `hidden` e' il ripiego */
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  overflow-x: hidden;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--judgy);
  outline-offset: 2px;
  border-radius: 2px;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
ul,
ol {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: var(--t-h1);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--t-h2);
  line-height: 1.06;
}

h3 {
  font-size: var(--t-h3);
  line-height: 1.24;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: var(--z-skip);
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-sm);
  font-weight: 600;
  transform: translateY(-64px);
  transition: transform var(--dur-1) var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- marchio (anche nelle pagine legali) ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
}

.brand-logo {
  display: block;
  width: 104px;
  height: auto;
  overflow: visible;
}

.brand-logo .logo-orange {
  fill: var(--judgy);
}

.brand-logo .logo-black {
  fill: var(--ink);
}

/* ---------- bottoni ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-family: var(--body);
  font-size: var(--t-sm);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease),
    color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}

.button:active {
  transform: translateY(1px);
}

.button-solid {
  background: var(--judgy);
  color: var(--ink);
}

.button-solid:hover,
.button-solid:focus-visible {
  background: #ff7a44;
}

.button-ghost {
  border-color: var(--rule);
  color: var(--ink);
  background: transparent;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--ink);
}

.button-quiet {
  padding: 0 2px;
  min-height: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
  border: 0;
  border-bottom: 2px solid var(--rule);
  border-radius: 0;
}

.button-quiet:hover,
.button-quiet:focus-visible {
  border-bottom-color: var(--judgy);
}

.button-large {
  min-height: 50px;
  padding: 0 24px;
  font-size: 1rem;
}

/* ---------- moto ridotto ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- legal pages (terms, privacy, cookies, legal notice) ---------- */

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  border-bottom: 1px solid var(--card-edge);
}

.legal-home-link {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.legal-home-link:hover,
.legal-home-link:focus-visible {
  color: var(--judgy-deep);
}

.legal-page {
  width: min(calc(100% - 40px), 840px);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 60px) 0 clamp(70px, 9vw, 110px);
}

.legal-page h1 {
  font-size: clamp(2.1rem, 4.6vw, 3rem);
  margin-bottom: 12px;
}

.legal-updated {
  margin-bottom: 36px;
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: 0.88rem;
}

.legal-page h2 {
  margin: 46px 0 12px;
  font-size: clamp(1.3rem, 2.4vw, 1.55rem);
  line-height: 1.18;
}

.legal-page h3 {
  margin: 28px 0 8px;
}

.legal-page p {
  margin: 0 0 14px;
  font-size: 0.98rem;
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 16px;
  padding-left: 24px;
  display: grid;
  gap: 8px;
  font-size: 0.98rem;
}

.legal-page a {
  color: var(--judgy-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover,
.legal-page a:focus-visible {
  color: var(--judgy);
}

.legal-notice-box {
  margin: 18px 0 22px;
  padding: 18px 20px;
  background: var(--judgy-tint);
  border: 1px solid var(--card-edge);
  border-left: 4px solid var(--judgy);
  border-radius: var(--radius);
}

.legal-notice-box p {
  margin: 0;
  font-weight: 600;
}

.legal-table-wrap {
  margin: 0 0 16px;
  overflow-x: auto;
}

.legal-page table {
  width: 100%;
  min-width: 620px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal-page th,
.legal-page td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--card-edge);
  text-align: left;
  vertical-align: top;
}

.legal-page th {
  background: var(--paper-sunk);
  font-weight: 700;
}

.legal-page address {
  margin: 0 0 14px;
  font-style: normal;
  font-size: 0.98rem;
}

.legal-footer {
  border-top: 1px solid var(--rule);
  padding: 24px 0 34px;
}

.legal-footer-shell {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

/* Copyright e riga di targa viaggiano insieme: senza il contenitore sarebbero
   due fratelli di uno space-between, e i dati camerali finirebbero dall'altra
   parte della riga rispetto al nome a cui appartengono. */
.legal-footer-identity {
  display: grid;
  gap: var(--s-1);
  max-width: 62ch;
}

/* Un gradino sotto, come .footer-registry sul fondo scuro. Nessun colore nuovo:
   --ink-soft e' gia' quello dello shell, e --ink-faint a questa dimensione
   scenderebbe sotto il rapporto di contrasto. */
.legal-footer-registry {
  font-size: var(--t-xs);
}

.legal-footer-registry a {
  color: inherit;
  text-decoration: underline;
}

.legal-footer-registry a:hover {
  color: var(--judgy-deep);
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-footer a {
  color: var(--ink);
  font-weight: 600;
}

.legal-footer a:hover,
.legal-footer a:focus-visible {
  color: var(--judgy-deep);
}

@media (max-width: 720px) {
  .legal-footer-shell {
    flex-direction: column;
  }
}

/* ============================================================
   Cookie consent banner (markup injected by cookie-consent.js)
   — a little comment card pinned to the corner of the table.
   ============================================================ */

.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: var(--z-cookie);
  width: min(430px, calc(100vw - 40px));
}

/* the .button display rules would otherwise defeat the hidden attribute */
.cookie-banner [hidden] {
  display: none !important;
}

.cookie-card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  box-shadow: 0 20px 48px rgba(33, 29, 22, 0.24);
  overflow: hidden;
  outline: none;
  animation: cookie-rise 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-card::before {
  /* awning stripe in brand orange */
  content: "";
  display: block;
  height: 7px;
  background: repeating-linear-gradient(
    -45deg,
    var(--judgy) 0 12px,
    var(--judgy-tint) 12px 24px
  );
}

@keyframes cookie-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-card {
    animation: none;
  }
}

.cookie-body {
  padding: 18px 20px 20px;
}

.cookie-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cookie-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cookie-close {
  flex: none;
  margin-right: -6px;
  border: 0;
  background: none;
  padding: 2px 6px;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}

.cookie-close:hover,
.cookie-close:focus-visible {
  color: var(--judgy-deep);
}

.cookie-text {
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.cookie-text a {
  color: var(--judgy-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-prefs {
  margin-top: 14px;
  border-top: 1px dashed var(--rule);
  padding-top: 4px;
}

.cookie-groups {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cookie-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
}

.cookie-group + .cookie-group {
  border-top: 1px dashed var(--rule);
}

.cookie-group-copy {
  display: grid;
  gap: 2px;
}

.cookie-group-name {
  font-weight: 700;
  font-size: 0.92rem;
}

.cookie-group-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.cookie-always-on {
  flex: none;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--judgy-deep);
  background: var(--judgy-tint);
  border-radius: 999px;
  padding: 4px 10px;
}

.cookie-switch {
  position: relative;
  flex: none;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.cookie-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.cookie-slider {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--track-off);
  border-radius: 999px;
  transition: background 160ms ease;
}

.cookie-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--card);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(33, 29, 22, 0.3);
  transition: transform 160ms ease;
}

.cookie-switch input:checked + .cookie-slider {
  background: var(--judgy);
}

.cookie-switch input:checked + .cookie-slider::after {
  transform: translateX(20px);
}

.cookie-switch input:focus-visible + .cookie-slider {
  outline: 2px solid var(--judgy);
  outline-offset: 2px;
}

.cookie-note {
  margin: 10px 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.cookie-actions .button {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.cookie-customize {
  margin-left: auto;
  border: 0;
  background: none;
  padding: 4px 0;
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cookie-customize:hover,
.cookie-customize:focus-visible {
  color: var(--judgy-deep);
}

/* footer "Cookie Preferences" trigger, styled like its sibling links */
.cookie-prefs-link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.cookie-prefs-link:hover,
.cookie-prefs-link:focus-visible {
  color: var(--judgy-deep);
}

.legal-links .cookie-prefs-link {
  text-align: left;
  color: var(--cream);
  font-size: inherit;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-links .cookie-prefs-link:hover,
.legal-links .cookie-prefs-link:focus-visible {
  color: var(--judgy);
}

@media (max-width: 560px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
  }

  .cookie-actions .button {
    flex: 1 1 auto;
  }
}

/* ---------- pop-up «Scrivici» (markup iniettato da contact-modal.js) ----------
   Il banner dei cookie e' una card d'angolo che non blocca la pagina; questo
   invece e' una modale vera: fondale, focus confinato, Esc, scroll fermo. La
   tenda a righe e' la stessa, perche' e' la firma delle superfici sovrapposte
   del sito. Nessun colore nuovo, un solo piano nuovo: --z-modal. */
.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-5) 20px;
  overflow-y: auto;
  background: rgba(33, 29, 22, 0.55);
  animation: contact-fade var(--dur-2) var(--ease);
}

/* le regole display dei .button batterebbero l'attributo hidden */
.contact-overlay[hidden],
.contact-overlay [hidden] {
  display: none !important;
}

body.contact-open {
  overflow: hidden;
}

.contact-dialog {
  width: min(560px, 100%);
  margin: auto;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  animation: contact-rise 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-dialog::before {
  content: "";
  display: block;
  height: 7px;
  background: repeating-linear-gradient(
    -45deg,
    var(--judgy) 0 12px,
    var(--judgy-tint) 12px 24px
  );
}

@keyframes contact-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes contact-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-overlay,
  .contact-dialog {
    animation: none;
  }
}

.contact-form {
  display: grid;
  gap: var(--s-4);
  padding: 20px 22px 22px;
}

.contact-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
}

.contact-title {
  margin: 0;
  font-size: var(--t-h3);
}

.contact-close {
  border: 0;
  background: none;
  padding: 0 2px;
  line-height: 1;
  font-size: 1.5rem;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color var(--dur-1) var(--ease);
}

.contact-close:hover,
.contact-close:focus-visible {
  color: var(--judgy-deep);
}

.contact-lead {
  margin: calc(var(--s-4) * -1) 0 0;
  color: var(--ink-soft);
  font-size: var(--t-sm);
}

.contact-lead a {
  color: inherit;
}

/* La casella «Richiedi l'installazione»: la riga che cambia l'oggetto della
   mail, quindi sta in evidenza sopra i campi e non in fondo fra le note. */
.contact-check {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3) 14px;
  background: var(--judgy-tint);
  border: 1px solid var(--card-edge);
  border-radius: var(--r-sm);
  cursor: pointer;
}

.contact-check input {
  margin: 2px 0 0;
  width: 17px;
  height: 17px;
  flex: none;
  accent-color: var(--judgy);
}

.contact-check-copy {
  display: grid;
  gap: 2px;
}

.contact-check-name {
  font-weight: 700;
}

.contact-check-desc {
  color: var(--ink-soft);
  font-size: var(--t-sm);
}

.contact-pair {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr 1fr;
}

.contact-field {
  display: grid;
  gap: 6px;
}

.contact-label {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-faint);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--card-edge);
  border-radius: var(--r-sm);
  transition: border-color var(--dur-1) var(--ease);
}

.contact-field textarea {
  resize: vertical;
  min-height: 76px;
}

.contact-field input:hover,
.contact-field textarea:hover {
  border-color: var(--rule);
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--ink-faint);
}

.contact-hint {
  margin: calc(var(--s-4) * -1 + 2px) 0 0;
  color: var(--ink-soft);
  font-size: var(--t-sm);
}

/* min-height: l'errore compare e sparisce senza far saltare il modulo */
.contact-error {
  margin: 0;
  min-height: 20px;
  color: var(--judgy-deep);
  font-size: var(--t-sm);
  font-weight: 600;
}

.contact-note {
  margin: calc(var(--s-4) * -1 + 2px) 0 0;
  color: var(--ink-soft);
  font-size: var(--t-xs);
}

.contact-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.contact-copy {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: var(--t-sm);
  color: var(--ink-soft);
  text-decoration: underline;
  cursor: pointer;
  transition: color var(--dur-1) var(--ease);
}

.contact-copy:hover,
.contact-copy:focus-visible {
  color: var(--judgy-deep);
}

@media (max-width: 560px) {
  .contact-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .contact-dialog {
    width: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .contact-pair {
    grid-template-columns: 1fr;
  }

  .contact-actions .button {
    flex: 1 1 auto;
  }
}
