/* Lillio brand tokens - mirrored from /brand/lillio-brand.css (canonical source).
   Source: Figma "Lillio Brand Styles" 3S0ciaCQWPZeXK0LIwDMrd. */
:root {
  --teal: #00CCCC;
  --teal-dark: #009999;
  --teal-deep: #007A7A;   /* derived: accessible button hover/active */
  --teal-light: #B3F0F0;
  --teal-tint: #E5F5F5;
  --green: #66CC99;
  --green-dark: #009966;
  --coral: #F76363;
  --coral-dark: #CC3333;
  --yellow: #FFCC33;
  --charcoal: #313131;
  --muted: #6D758F;
  --grey-300: #E4E4E4;
  --grey-100: #F5F5F7;
  --bg: #F5F5F7;
  --card-bg: #FFFFFF;
  --border: #E4E4E4;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(0, 153, 153, 0.10);
  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
/* hidden attribute must win over class display rules (.selected uses flex) */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: linear-gradient(160deg, #eafafa 0%, var(--bg) 60%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-header { padding: 28px 16px 8px; }
.logo { height: 52px; width: auto; display: block; }

.card {
  background: var(--card-bg);
  width: min(560px, 92vw);
  margin: 18px 16px;
  padding: 32px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-dark);
  background: var(--teal-tint);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

h1 { font-family: var(--font-display); font-weight: 600; font-size: 26px; margin: 4px 0 8px; letter-spacing: -0.01em; }
h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin: 8px 0; }
.lede { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0 0 22px; }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 34px 18px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: #fbfdfd;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.dragover {
  border-color: var(--teal);
  background: var(--teal-tint);
  outline: none;
}
.dz-icon { width: 40px; height: 40px; fill: none; stroke: var(--teal-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dz-text { font-size: 15px; }
.dz-hint { font-size: 13px; color: var(--muted); }

.selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--teal-tint);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.file-name { font-weight: 600; word-break: break-all; }
.link-btn { background: none; border: none; color: var(--coral-dark); font-weight: 600; cursor: pointer; font-size: 14px; font-family: inherit; }

/* multi-file list */
.file-list { list-style: none; padding: 0; margin: 14px 0 0; }
.file-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; background: var(--teal-tint); border-radius: var(--radius-sm); margin-bottom: 8px; font-size: 14px; }
.file-list .file-name { font-weight: 600; word-break: break-all; }
.file-list .file-status { white-space: nowrap; color: var(--muted); font-size: 13px; }
.file-list .ok { color: var(--green-dark); font-weight: 600; }
.file-list .bad { color: var(--coral-dark); font-weight: 600; }

.progress-wrap { margin-top: 18px; }
.progress-bar { height: 8px; background: var(--teal-tint); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--teal); transition: width .2s; }
.progress-label { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }

.error {
  margin-top: 16px;
  color: var(--coral-dark);
  background: #fdecea;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
}

.btn {
  width: 100%;
  margin-top: 22px;
  padding: 15px;
  font-size: 17px;
  font-weight: 600;
  font-family: var(--font-display);
  color: #fff;
  background: var(--teal-dark);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s, transform .05s;
}
.btn:hover:not(:disabled) { background: var(--teal-deep); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { background: var(--grey-300); color: #fff; cursor: not-allowed; }

.success { text-align: center; }
.check {
  width: 64px; height: 64px; margin: 6px auto 12px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff; font-size: 34px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.success p { color: var(--muted); line-height: 1.55; }
.sub-note { color: var(--muted); font-size: 13px; margin-top: 16px; }

.site-footer { color: var(--muted); font-size: 12px; text-align: center; padding: 8px 24px 32px; max-width: 480px; }
.site-footer p { margin: 0; line-height: 1.5; }
.footer-links { margin-top: 8px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.footer-links a { color: #009999; font-weight: 600; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-links .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); display: inline-block; }

/* OTP / form fields (self-serve /upload) */
.field { display: block; text-align: left; margin-top: 6px; }
.field span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 13px 14px;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}
.field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
#code { letter-spacing: .4em; text-align: center; font-size: 22px; font-weight: 600; }
.link-btn.block { display: block; margin: 14px auto 0; }

/* enterprise assurance panel */
.trust {
  list-style: none;
  padding: 16px 18px;
  margin: 4px 0 24px;
  background: var(--grey-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.trust li { position: relative; padding-left: 26px; margin: 10px 0; font-size: 13.5px; color: var(--charcoal); line-height: 1.5; }
.trust li:first-child { margin-top: 0; }
.trust li:last-child { margin-bottom: 0; }
.trust li::before { content: "✓"; position: absolute; left: 2px; top: 0; color: var(--green-dark); font-weight: 800; }

/* shared error page (invalid/expired/used link) */
.state-page { justify-content: center; }
.state-page .card { text-align: center; }
.state-page .logo { height: 52px; margin: 0 auto 16px; }
