/* Pagina di download dei Transfer (link mandati ai clienti). Identità Clorofilla.Studio. */
@font-face {
  font-family: 'Inter Tight';
  src: url('/brand/inter-tight-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Rinter';
  src: url('/brand/Rinter.otf') format('opentype');
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #1d1d1b;
  --grey: #666963;
  --grey-2: #9a9d97;
  --line: #e4e4e2;
  --paper: #f3f3f1;
  --green: #1ed760;
  --green-hover: #19c457;
  --green-dark: #149947;
  --green-soft: #e8fbef;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.5 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.t {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: max(28px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.t-head { padding: 8px 4px 28px; }
.t-head img { display: block; width: 200px; height: auto; }
.t-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 30px rgb(0 0 0 / 0.05);
}
.t-from { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--green-dark); text-transform: uppercase; }
.t-card h1 {
  margin: 0;
  font: 400 34px/1.08 'Rinter', 'Inter Tight', sans-serif;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.t-meta { margin: 12px 0 0; color: var(--grey); font-variant-numeric: tabular-nums; }
.t-files { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.t-file { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.t-name { font-weight: 600; overflow-wrap: anywhere; }
.t-size { grid-column: 1; font-size: 13px; color: var(--grey); font-variant-numeric: tabular-nums; }
.t-file .t-btn { grid-column: 2; grid-row: 1 / span 2; }
.t-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: 600 14px/1 'Inter Tight', sans-serif;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.t-btn:hover { border-color: var(--grey-2); }
.t-btn:active { transform: scale(0.97); }
.t-btn:disabled { cursor: default; opacity: 0.7; transform: none; }
.t-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 50%, transparent); outline-offset: 2px; }
.t-btn.main { width: 100%; height: 52px; margin-top: 24px; font-size: 16px; background: var(--green); border-color: var(--green); }
.t-btn.main:hover { background: var(--green-hover); border-color: var(--green-hover); }
.t-btn svg { flex: none; }
.t-note { margin: 18px 0 0; font-size: 13px; color: var(--grey); }
.t-retry { margin-top: 20px; }
.t-foot { margin-top: auto; padding: 28px 4px 4px; font-size: 12.5px; color: var(--grey-2); }
.t-foot a { color: inherit; }
.t-skel { border-radius: 8px; background: linear-gradient(90deg, #f0f0ee 0%, #f7f7f5 50%, #f0f0ee 100%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.t-skel-sm { width: 30%; height: 14px; }
.t-skel-lg { width: 80%; height: 34px; margin-top: 12px; }
.t-skel-md { width: 55%; height: 16px; margin-top: 14px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) {
  .t-skel { animation: none; }
  .t-btn { transition: none; }
  .t-btn:active { transform: none; }
}
@media (max-width: 480px) {
  .t-head { padding-bottom: 20px; }
  .t-head img { width: 168px; }
  .t-card { padding: 22px 18px; border-radius: 14px; }
  .t-card h1 { font-size: 28px; }
  .t-btn { height: 44px; }
}
