/* D'CLIC file drop — styles (brand: dclic.info) */

/* ------------------------------------------------------------ Fonts (self-hosted, no third-party request) */
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-display: swap; src: url("fonts/poppins-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }

/* ------------------------------------------------------------ Tokens */
:root {
  --accent: #ED2B50;
  --accent-dark: #BE2240;
  --accent-tint: #FEF0F2;
  --accent-tint-strong: #FDE7EB;
  --accent-tint-border: #FCDBE1;
  --accent-dash: #D78EA5;
  --accent-shadow: rgba(237, 43, 80, .28);
  --navy: #001044;
  --text: #2E3A57;
  --text-2: #3D4864;
  --muted: #5B6478;
  --bg: #F6F7FA;
  --surface: #FFFFFF;
  --line: #E4E8F0;
  --line-2: #D8DEEA;
  --line-3: #EEF1F6;
  --track: #E9ECF3;
  --ok: #166534;
  --ok-bar: #16A34A;
  --error: #B42318;
  --radius-xl: 36px;
  --radius-l: 24px;
  --radius-m: 18px;
  --font-title: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-title); color: var(--navy); margin: 0; }
p { margin: 0; }
a { color: var(--navy); }
a:hover { color: #C41E40; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }

.icon { flex-shrink: 0; }
.icon--accent { color: var(--accent); }
.muted { color: var(--muted); }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.main { flex: 1; padding-top: 56px; padding-bottom: 72px; }
.main--narrow { max-width: 820px; display: flex; flex-direction: column; gap: 24px; }

/* Brand highlighter, as on dclic.info titles */
.hl {
  font-weight: 800;
  padding: 0 6px;
  background: linear-gradient(to bottom, transparent 62%, rgba(237, 43, 80, .85) 62% 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-dark); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent-dark);
  font-size: 14px; font-weight: 600;
}

/* Touch devices get "pick from photos" + "browse files"; mouse users get drag & drop. */
@media (hover: hover), (pointer: fine) { .only-touch { display: none !important; } }
@media (hover: none) and (pointer: coarse) { .only-pointer { display: none !important; } }

/* ------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 32px;
  border: 0; border-radius: 999px;
  font-family: var(--font-title); font-weight: 700; text-transform: uppercase;
  line-height: 1.25; text-align: center; text-decoration: none;
  cursor: pointer;
  transition: box-shadow .4s cubic-bezier(.83, 0, .34, 1), transform .15s ease, background-color .2s;
}
/* White on #ED2B50 is 4.1:1, so primary labels stay at large-text size (≥ 18.66px bold). */
.btn--primary {
  background: var(--accent); color: #FFFFFF;
  font-size: 19px; letter-spacing: 2px;
  box-shadow: 0 6px 18px var(--accent-shadow);
}
.btn--primary:hover:not(:disabled) { box-shadow: 0 0 40px rgba(237, 43, 80, .55); color: #FFFFFF; }
.btn--primary:active:not(:disabled) { transform: translateY(1px); }
.btn--primary:disabled { background: var(--line); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.btn--primary.is-busy, .btn--primary.is-busy:disabled { background: var(--accent); color: #FFFFFF; cursor: progress; box-shadow: none; }
.btn--outline {
  background: #FFFFFF; color: var(--navy);
  border: 2px solid var(--navy);
  font-size: 15px; letter-spacing: 1px; min-height: 52px; padding: 0 26px;
}
.btn--outline:hover { background: var(--navy); color: #FFFFFF; }
.btn--wide { width: 100%; }

.link-btn {
  border: 0; background: none; padding: 8px; min-height: 44px;
  color: var(--navy); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.link-btn:hover { color: #C41E40; }

.icon-btn {
  width: 44px; height: 44px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--line-3); color: var(--navy); }

/* ------------------------------------------------------------ Header & footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.logo { display: block; }
.logo img { display: block; height: 44px; width: auto; }
.call-pill {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface); color: var(--text); font-size: 15px; text-decoration: none;
}
.call-pill strong { color: var(--navy); font-weight: 600; }
.call-pill:hover { border-color: var(--navy); color: var(--navy); }
.call-pill__short { display: none; font-weight: 600; color: var(--navy); }

.site-footer { background: var(--navy); color: #C8CFE0; border-radius: var(--radius-xl) var(--radius-xl) 0 0; font-size: 14px; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; }
.site-footer p { display: flex; gap: 10px; line-height: 1.5; }
.site-footer__privacy { max-width: 560px; align-items: center; }
.site-footer__agency { display: block !important; }
.site-footer strong { color: #FFFFFF; font-weight: 600; }
.site-footer a { color: #FFFFFF; }
.site-footer a:hover { color: #FFC2CE; }

/* ------------------------------------------------------------ Upload view */
.view--upload { display: flex; flex-direction: column; gap: 32px; }

.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.hero__title { max-width: 800px; font-size: 48px; font-weight: 800; line-height: 1.12; letter-spacing: -.5px; }
.hero__lead { max-width: 620px; font-size: 19px; line-height: 1.55; color: var(--text-2); }

.memo {
  display: flex; flex-direction: column; gap: 24px;
  padding: 32px; border-radius: var(--radius-l);
  background: var(--accent-tint); border: 1px solid var(--accent-tint-border);
}
.memo__title { font-size: 24px; font-weight: 600; margin-top: 4px; }
.memo__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.memo__item { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius-m); background: var(--surface); }
.memo__item h3 { font-size: 18px; font-weight: 600; }
.memo__item p { font-size: 15px; color: var(--text-2); margin-top: 4px; }
.memo__icon {
  width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-tint); color: var(--accent);
}
.memo__reassure { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--text); }
.memo__reassure strong { color: var(--navy); font-weight: 600; }

.dropzone {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
  padding: 56px 32px;
  background: var(--surface);
  border: 2px dashed var(--accent-dash); border-radius: var(--radius-xl);
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.dropzone__icon {
  width: 84px; height: 84px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-tint); color: var(--accent);
  transition: transform .2s, background-color .2s, color .2s;
}
.dropzone__icon .icon { stroke-width: 1.8; }
.dropzone__title { max-width: 560px; font-family: var(--font-title); font-weight: 600; font-size: 26px; line-height: 1.25; color: var(--navy); }
.dropzone__hint { font-size: 16px; color: var(--text); }
.dropzone__or { display: flex; align-items: center; gap: 14px; width: 220px; color: var(--muted); font-size: 14px; }
.dropzone__or span { flex: 1; height: 1px; background: var(--line-2); }
.dropzone__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.dropzone__note { font-size: 14px; color: var(--muted); }
.dropzone .link-btn { margin-top: -10px; }
.dropzone.is-dragover {
  background: var(--accent-tint-strong);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 8px rgba(237, 43, 80, .12);
}
.dropzone.is-dragover .dropzone__icon { background: var(--accent); color: #FFFFFF; transform: translateY(-6px); box-shadow: 0 12px 24px var(--accent-shadow); }
.dropzone__active { display: none; }
.dropzone.is-dragover .dropzone__title > span:not(.dropzone__active) { display: none !important; }
.dropzone.is-dragover .dropzone__active { display: inline; }
.dropzone.is-dragover .dropzone__actions,
.dropzone.is-dragover .dropzone__or,
.dropzone.is-dragover .link-btn { visibility: hidden; }

.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 18px; border-radius: var(--radius-m);
  background: #FEF3F2; border: 1px solid #FECDCA; color: #7A271A; font-size: 15px;
}

/* ------------------------------------------------------------ File list */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); }
.file-card { padding: 8px; }
.file-card__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; padding: 18px 20px 12px; }
.file-card__head h2 { font-size: 20px; font-weight: 600; }
.file-card__head .muted { font-size: 14px; }
.file-list { list-style: none; margin: 0; padding: 0; }
.file-row { display: flex; align-items: center; gap: 16px; padding: 14px 12px 14px 20px; border-top: 1px solid var(--line-3); }
.file-badge {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; letter-spacing: .3px;
}
.file-badge--red { background: #FDE8E8; color: #B42318; }
.file-badge--amber { background: #FEF3C7; color: #92400E; }
.file-badge--blue { background: #DBEAFE; color: #1D4ED8; }
.file-badge--green { background: #DCFCE7; color: #166534; }
.file-badge--violet { background: #EDE9FE; color: #5B21B6; }
.file-badge--navy { background: #E0E7FF; color: #001044; }
.file-badge--grey { background: var(--line-3); color: var(--text-2); }
.file-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.file-row__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.file-row__name { font-size: 16px; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-row__state { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent-dark); }
.file-row__state--done { color: var(--ok); }
.file-row__state--error { color: var(--error); }
.file-row__meta { font-size: 13px; color: var(--muted); }
.bar { height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--accent); transition: width .3s ease; }
.file-row.is-done .bar > span { background: var(--ok-bar); }
.file-row.is-error .bar > span { background: var(--error); }
.file-row__retry { border: 0; background: none; padding: 0; color: var(--navy); font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; min-height: 24px; }

/* ------------------------------------------------------------ Message & send */
.message-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.message-box__toggle {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 60px; padding: 12px 22px;
  border: 0; background: none; border-radius: var(--radius-m);
  color: var(--text); font-size: 16px; text-align: left; cursor: pointer;
}
.message-box__toggle > span { flex: 1; }
.message-box__chevron { color: var(--muted); transition: transform .2s; }
.message-box__toggle[aria-expanded="true"] .message-box__chevron { transform: rotate(180deg); }
.message-box__panel { padding: 0 22px 20px; }
.message-box textarea {
  width: 100%; min-height: 120px; padding: 14px 16px;
  border: 1px solid var(--line-2); border-radius: 14px; background: #FAFBFD;
  color: var(--navy); font: 16px/1.5 var(--font-body); resize: vertical;
}
.message-box textarea:focus { outline: 3px solid rgba(0, 16, 68, .25); border-color: var(--navy); }

.send { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 8px; }
.btn--send { width: 100%; max-width: 640px; min-height: 64px; }
.send__hint { font-size: 14px; text-align: center; }

/* ------------------------------------------------------------ Success view */
.success {
  max-width: 760px; margin: 16px auto 0;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
  padding: 56px 48px 48px; border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(0, 16, 68, .06);
}
.success:focus { outline: none; }
.success__badge { width: 104px; height: 104px; border-radius: 999px; background: var(--accent-tint); display: flex; align-items: center; justify-content: center; }
.success__badge > span {
  width: 72px; height: 72px; border-radius: 999px; background: var(--accent); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px var(--accent-shadow);
}
.success__badge .icon { stroke-width: 2.6; }
.success__title { font-size: 48px; font-weight: 700; line-height: 1.1; }
.success__lead { max-width: 540px; font-size: 19px; line-height: 1.55; color: var(--text); }
.success__recap {
  width: 100%; margin-top: 8px; padding: 20px 24px; text-align: left;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--accent-tint); border: 1px solid var(--accent-tint-border); border-radius: 20px;
}
.success__recap-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 15px; }
.success__recap-head strong { font-family: var(--font-title); font-weight: 600; font-size: 18px; color: var(--navy); }
.success__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.success__chips li {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 6px 12px 6px 6px; background: #FFFFFF; border-radius: 999px; font-size: 14px; color: var(--navy);
}
.success__chips li > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.success__chips .file-badge { width: auto; height: auto; padding: 3px 7px; border-radius: 999px; font-size: 11px; }
.success__msg { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.success__next { width: 100%; display: flex; flex-direction: column; gap: 14px; text-align: left; margin-top: 8px; }
.success__next h2 { font-size: 20px; font-weight: 600; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 16px; font-size: 15px; line-height: 1.45; }
.steps li > span {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-tint); color: var(--accent-dark); font-weight: 700;
}
.success__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 12px; }
.success__call { display: inline-flex; align-items: center; min-height: 52px; padding: 0 16px; font-weight: 500; text-decoration: none; }

/* ------------------------------------------------------------ Download page (agency side) */
.download-card { padding: 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; border-radius: var(--radius-xl); }
.download-card__title { font-size: 36px; font-weight: 700; line-height: 1.2; }
.download-card__summary { color: var(--text-2); }
.download-card__main-action { width: 100%; max-width: 560px; margin-top: 8px; }
.download-card code { background: var(--line-3); padding: 2px 6px; border-radius: 6px; font-size: 14px; }
.client-message { width: 100%; text-align: left; padding: 16px 20px; border-radius: var(--radius-m); background: var(--accent-tint); border: 1px solid var(--accent-tint-border); }
.client-message p + p { margin-top: 6px; color: var(--navy); }
.delete-card, .notice-card { padding: 28px 32px; display: flex; flex-direction: column; gap: 10px; }
.delete-card h2 { font-size: 20px; font-weight: 600; }
.notice-card h1 { font-size: 28px; }
.delete-card__form { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.checkbox { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; accent-color: var(--accent); }

/* ------------------------------------------------------------ Small screens */
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .main { padding-top: 28px; padding-bottom: 40px; }
  .logo img { height: 34px; }
  .site-header__inner { padding-top: 12px; padding-bottom: 12px; }
  .call-pill { padding: 0 14px; font-size: 14px; }
  .call-pill__long { display: none; }
  .call-pill__short { display: inline; }

  .view--upload { gap: 22px; }
  .hero { align-items: flex-start; text-align: left; gap: 12px; }
  .hero__title { font-size: 32px; }
  .hero__lead { font-size: 16px; }
  /* On phones the action comes first, the checklist after it. */
  .dropzone { order: 1; padding: 28px 20px; gap: 14px; border-radius: 26px; }
  .alert { order: 2; }
  .file-card { order: 3; }
  .memo { order: 4; padding: 20px; gap: 16px; }
  .message-box { order: 5; }
  .hp { order: 6; }
  .send { order: 7; }

  .memo__title { font-size: 20px; }
  .memo__item { flex-direction: row; align-items: flex-start; gap: 12px; padding: 14px; }
  .memo__item h3 { font-size: 16px; }
  .memo__item p { font-size: 14px; }
  .memo__icon { width: 40px; height: 40px; }
  .memo__reassure { align-items: flex-start; font-size: 15px; }

  .dropzone__icon { width: 64px; height: 64px; }
  .dropzone__icon .icon { width: 30px; height: 30px; }
  .dropzone__title { font-size: 21px; }
  .dropzone__actions { flex-direction: column; width: 100%; gap: 10px; }
  .dropzone__actions .btn { width: 100%; }
  .btn--primary { letter-spacing: 1px; }

  .file-card { padding: 4px; }
  .file-card__head { padding: 14px 14px 10px; }
  .file-row { gap: 12px; padding: 12px 4px 12px 14px; }
  .file-badge { width: 42px; height: 42px; font-size: 11px; }
  .file-row__name { font-size: 15px; }

  .message-box__toggle { padding: 12px 16px; font-size: 15px; }
  .message-box__panel { padding: 0 16px 16px; }

  /* Keep the send button reachable once files are in. */
  .send.is-sticky {
    position: sticky; bottom: 0; z-index: 5;
    margin: 0 -16px -40px; padding: 14px 16px 18px;
    background: #FFFFFF; border-top: 1px solid var(--line);
    box-shadow: 0 -10px 24px rgba(0, 16, 68, .06);
  }

  .success { padding: 36px 20px 28px; border-radius: 26px; margin-top: 0; }
  .success__title { font-size: 38px; }
  .success__lead { font-size: 17px; }
  .success__actions { flex-direction: column; width: 100%; }
  .success__actions .btn { width: 100%; }

  .download-card { padding: 28px 20px; border-radius: 26px; }
  .download-card__title { font-size: 28px; }
  .delete-card, .notice-card { padding: 22px 20px; }
  .site-footer { border-radius: 28px 28px 0 0; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
