/* Doc Drop skin. Tokens, type, header, buttons, plate, fields and footer are copied from eskewinsurance.com
   (see design/SITE-MATCH.md). Behaviour lives in app.js and is untouched. */

/* ---------- fonts (same files the site serves) ---------- */
@font-face { font-family: "Archivo"; src: url(/assets/fonts/archivo-var.woff2) format("woff2"); font-weight: 400 800; font-stretch: 100% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(/assets/fonts/atkinson-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(/assets/fonts/atkinson-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(/assets/fonts/atkinson-700.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
/* Atkinson draws a slashed zero. Only the digit 0 is borrowed from Archivo so numbers read plain. */
@font-face { font-family: "Atkinson Zero"; src: url(/assets/fonts/archivo-var.woff2) format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; unicode-range: U+0030; size-adjust: 96%; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial"); size-adjust: 103%; ascent-override: 88%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: "Atkinson Fallback"; src: local("Arial"); size-adjust: 104%; ascent-override: 92%; descent-override: 25%; line-gap-override: 0%; }

/* ---------- tokens ---------- */
:root {
  --blue: #004AAD;  --blue-deep: #002E6E;  --gray: #999999;
  --amber: #FBB03B; --amber-hi: #FFC15C;   --amber-ink: #2B1E08;
  --sand: #C69C6D;  --charcoal: #4D4D4D;   --cyan: #00FFFF;
  --ink: #070B14;   --ink-2: #0E1420;      --paper: #F5F2EC; --paper-2: #EBE6DB;
  --on-ink: #F5F2EC; --on-ink-2: rgba(245,242,236,0.72);
  --hairline-ink: rgba(245,242,236,0.14); --hairline-paper: rgba(77,77,77,0.18);
  --font-display: "Archivo", "Archivo Fallback", sans-serif;
  --font-body: "Atkinson Zero", "Atkinson Hyperlegible Next", "Atkinson Fallback", sans-serif;
  --h1: clamp(3rem, 6.4vw, 6rem);   --h2: clamp(2.25rem, 4vw, 4rem);  --h3: clamp(1.75rem, 2.6vw, 3rem);
  --lede: 1.25rem; --body: 1.0625rem; --small: 0.9375rem; --btn: 1rem;
  --h1-phone: clamp(2.5rem, 11vw, 3.4rem);
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --gutter: clamp(16px, 4vw, 56px); --wrap: 1440px; --measure: 60ch;
  --radius: 2px; --radius-dot: 999px;
  --shadow-plate: 0 24px 64px -24px rgba(7,11,20,0.6);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 200ms; --t-base: 450ms;
  --blue-hi: color-mix(in srgb, var(--blue) 84%, var(--paper));
  --blue-on-ink: color-mix(in srgb, var(--blue) 45%, var(--paper));
  --blue-ui: var(--blue);
  --action: var(--blue); --action-hi: var(--blue-hi); --on-action: var(--on-ink);
  --ring: var(--blue-on-ink);
  --focus: 2px solid var(--ring); --focus-offset: 3px;
  --header-h: 72px;
  --paper-fg: var(--ink);
  --field-bg: #fff;
  --err: #9b1c1c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1420; --paper-2: rgba(245,242,236,0.14); --charcoal: #F5F2EC; --hairline-paper: rgba(245,242,236,0.14);
    --blue-ui: color-mix(in srgb, #004AAD 45%, #F5F2EC);
    --blue-hi: color-mix(in srgb, #004AAD 84%, #F5F2EC); --blue-on-ink: color-mix(in srgb, #004AAD 45%, #F5F2EC);
    --paper-fg: var(--on-ink); --field-bg: #0a0f19; --err: #ff9a8f;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1420; --paper-2: rgba(245,242,236,0.14); --charcoal: #F5F2EC; --hairline-paper: rgba(245,242,236,0.14);
  --blue-ui: color-mix(in srgb, #004AAD 45%, #F5F2EC);
  --blue-hi: color-mix(in srgb, #004AAD 84%, #F5F2EC); --blue-on-ink: color-mix(in srgb, #004AAD 45%, #F5F2EC);
  --paper-fg: var(--on-ink); --field-bg: #0a0f19; --err: #ff9a8f;
}
/* Focus ring on paper surfaces is Royal Blue (spec section 10). */
.hd, .cn-plate, .ft { --ring: var(--blue-ui); --focus: 2px solid var(--blue-ui); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color: var(--on-ink); font-family: var(--font-body); -webkit-text-size-adjust: 100%; scrollbar-color: var(--gray) var(--ink); scrollbar-width: thin; caret-color: var(--amber); }
body { margin: 0; background: var(--ink); font-size: var(--body); line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; outline: none; padding-top: var(--header-h); }
::selection { background: var(--amber); color: var(--amber-ink); }
:focus-visible { outline: var(--focus); outline-offset: var(--focus-offset); }
a { color: inherit; text-underline-offset: 0.18em; }
img, video, svg { max-width: 100%; }
p { margin: 0; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.display { font-family: var(--font-display); font-weight: 800; font-stretch: 125%; letter-spacing: -0.02em; line-height: 0.95; text-wrap: balance; margin: 0; }
.t-h1 { font-size: var(--h1); line-height: 0.92; }
.t-h3 { font-size: var(--h3); font-stretch: 115%; line-height: 1.02; }
@media (max-width: 767px) { .t-h1 { font-size: var(--h1-phone); } .t-h3 { font-size: clamp(1.6rem, 7.4vw, 2rem); } }
.lede { font-size: var(--lede); line-height: 1.45; max-width: var(--measure); }
@media (max-width: 767px) { .cn-plate .lede { font-size: 1.0625rem; } }

/* ---------- header ---------- */
.hd { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); background: var(--paper); color: var(--paper-fg); box-shadow: 0 1px 0 var(--hairline-paper), 0 8px 24px -16px rgba(7,11,20,0.35); }
.hd-in { position: relative; display: flex; align-items: center; gap: var(--s-5); height: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.hd-brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; text-decoration: none; }
.lockup, .lockup img { display: block; }
.hd-brand .lockup img { width: auto; height: 30px; }
@media (max-width: 359px) { .hd-brand .lockup img { height: 24px; } .hd-in { gap: var(--s-3); } .hd-tel { font-size: 0.9375rem; } }
.hd-right { margin-left: auto; display: flex; align-items: center; gap: var(--s-4); }
/* The site hides the number under 768px. Doc Drop keeps it at every width on purpose: a client stuck on a link needs it. */
.hd-tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--font-display); font-weight: 700; font-stretch: 110%; text-decoration: none; white-space: nowrap; color: var(--blue-ui); }
.hd-tel:hover { color: var(--paper-fg); }
@media (min-width: 768px) { .hd-brand .lockup img { height: 34px; } .hd-tel { font-size: 1.0625rem; } }

/* ---------- layout (mirrors /contact) ---------- */
.dd-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "plate" "info"; row-gap: var(--s-7); padding-top: var(--s-7); padding-bottom: var(--s-8); align-items: start; }
.dd-grid > section { display: contents; }
.dd-head { grid-area: head; }
.dd-plate { grid-area: plate; }
.dd-help { grid-area: info; }
.dd-head .t-h1 { font-size: var(--h1-phone); max-width: 12ch; }
.dd-head .lede { color: var(--on-ink-2); max-width: 46ch; }
.amber { position: relative; display: block; height: 2px; width: min(100%, 560px); margin: var(--s-5) 0; }
.amber-rule { position: absolute; left: 0; top: 0; height: 2px; width: 40%; background: var(--amber); }
.dd-head .amber:last-child { margin-bottom: 0; }
@media (min-width: 1024px) {
  .dd-grid { grid-template-columns: minmax(0, 672px) minmax(0, 1fr); grid-template-areas: "head ." "plate info"; column-gap: var(--s-9); row-gap: var(--s-7); padding-top: var(--s-9); padding-bottom: var(--s-9); }
  .dd-head .t-h1 { font-size: clamp(2.5rem, 5.2vw, 4.75rem); }
}

/* ---------- help block ---------- */
.dd-help { max-width: 420px; display: flex; flex-direction: column; align-items: flex-start; }
.dd-help h2 { color: var(--on-ink); font-size: clamp(1.6rem, 7.4vw, 2rem); }
.dd-phone { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--s-4); font-family: var(--font-display); font-weight: 800; font-stretch: 118%; font-size: 1.5rem; color: var(--on-ink); text-decoration: none; }
.dd-phone:hover { text-decoration: underline; text-decoration-color: var(--blue-on-ink); text-decoration-thickness: 2px; }
.dd-help-list { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; gap: var(--s-1); font-size: var(--small); }
.dd-help-list a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--on-ink-2); text-decoration: none; overflow-wrap: anywhere; }
.dd-help-list a:hover { color: var(--on-ink); text-decoration: underline; text-decoration-color: var(--blue-on-ink); text-decoration-thickness: 2px; }
.dd-help-list svg { flex: none; color: var(--blue-on-ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: var(--radius); border: 1.5px solid transparent; font-family: var(--font-display); font-weight: 700; font-stretch: 110%; font-size: var(--btn); line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-base) var(--ease-out); }
@media (max-width: 767px) { .btn { min-height: 48px; padding: 0 22px; } }
.btn svg { flex: none; }
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { background: var(--action-hi); }
.btn-secondary { background: transparent; color: var(--on-ink); border-color: rgba(245, 242, 236, 0.5); }
/* hover only where there is a pointer, so a tap on a phone does not leave a button stuck blue */
@media (hover: hover) { .btn-secondary:hover { border-color: var(--blue-on-ink); color: var(--blue-on-ink); } }
.cn-plate .btn-secondary, .rf .btn-secondary { color: var(--paper-fg); border-color: color-mix(in srgb, var(--paper-fg) 60%, transparent); }
@media (hover: hover) { .cn-plate .btn-secondary:hover, .rf .btn-secondary:hover { border-color: var(--blue-ui); color: var(--blue-ui); } }
.btn[disabled] { opacity: 0.8; cursor: progress; }
.dd-actions .btn { width: 100%; }
@media (min-width: 768px) { .dd-actions .btn { width: auto; } }

/* ---------- plate and fields ---------- */
.cn-plate { background: var(--paper); color: var(--charcoal); border-radius: var(--radius); box-shadow: var(--shadow-plate); padding: var(--s-5); }
@media (min-width: 768px) { .cn-plate { padding: clamp(24px, 3.2vw, 48px); } }
.cn-plate h1, .cn-plate h2, .cn-plate h3 { color: var(--paper-fg); }
.dd-actions { background: none; box-shadow: none; padding: 0; }

.rf .fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-4); }
.rf label { font-size: var(--small); font-weight: 500; color: var(--paper-fg); }
.rf input[type="text"], .rf input[type="tel"], .rf input[type="email"] { width: 100%; min-height: 48px; padding: 10px 14px; background: var(--field-bg); color: var(--paper-fg); border: 1.5px solid rgba(77, 77, 77, 0.5); border-radius: var(--radius); font: inherit; font-size: 1rem; transition: border-color var(--t-fast); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rf input { border-color: rgba(245, 242, 236, 0.3); } }
:root[data-theme="dark"] .rf input { border-color: rgba(245, 242, 236, 0.3); }
.rf input:focus { outline: var(--focus); outline-offset: 0; border-color: var(--blue-ui); }
.rf .err { color: var(--err); font-size: var(--small); line-height: 1.4; }
.rf .err:empty { display: none; }
.rf .err-form { margin-bottom: var(--s-4); }
.rf-submit { width: 100%; margin-top: var(--s-4); }
.rf .err-form + .rf-submit { margin-top: 0; }
.rf-note { margin-top: var(--s-4); font-size: var(--small); line-height: 1.45; color: var(--charcoal); }

/* ---------- drop zone, pickers, file rows ---------- */
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: var(--s-6) var(--s-4); border: 1.5px dashed color-mix(in srgb, var(--paper-fg) 60%, transparent); border-radius: var(--radius); background: var(--field-bg); color: var(--paper-fg); text-align: center; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.drop svg { color: var(--blue-ui); margin-bottom: var(--s-1); }
.drop strong { font-family: var(--font-display); font-weight: 700; font-stretch: 112%; font-size: 1.125rem; }
.drop span { font-size: var(--small); color: var(--charcoal); }
.drop.over { border-color: var(--blue-ui); background: color-mix(in srgb, var(--blue) 6%, var(--field-bg)); }
.pickers { display: grid; grid-template-columns: 1fr; gap: var(--s-3); margin-top: var(--s-3); }
@media (min-width: 480px) { .pickers { grid-template-columns: 1fr 1fr; } }
.pickers .btn { padding: 0 12px; }

.files { list-style: none; margin: var(--s-5) 0 0; padding: 0; border-top: 1px solid var(--hairline-paper); }
.files:empty { margin: 0; border-top: 0; }
.file { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: var(--s-3); align-items: center; padding: var(--s-3) 0; border-bottom: 1px solid var(--hairline-paper); }
.file .thumb { grid-row: 1 / span 2; width: 48px; height: 48px; border-radius: var(--radius); border: 1px solid var(--hairline-paper); background: var(--field-bg); color: var(--blue-ui); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: var(--small); letter-spacing: -0.02em; overflow: hidden; }
.file .thumb img { width: 100%; height: 100%; object-fit: cover; }
.file .info { min-width: 0; }
.file .name { font-size: var(--small); font-weight: 500; color: var(--paper-fg); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.file .meta { font-size: var(--small); color: var(--charcoal); }
.file .state { grid-column: 2; font-size: var(--small); font-weight: 500; color: var(--charcoal); display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--s-2); min-height: 0; }
.file .state:empty { display: none; }
.file[data-state="done"] .state { color: var(--blue-ui); }
.file[data-state="done"] .state::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; margin-right: -2px; }
.file[data-state="error"] .meta { color: var(--err); }
.file .bar { grid-column: 1 / -1; height: 2px; margin-top: var(--s-3); background: var(--hairline-paper); overflow: hidden; }
.file .bar i { display: block; height: 100%; width: 0; background: var(--blue-ui); transition: width var(--t-base) var(--ease-out); }
.file[data-state="done"] .bar i { width: 100%; }
.file[data-state="queued"] .bar, .file[data-state="error"] .bar { display: none; }
.file .retry, .file .remove { min-height: 44px; padding: 0 var(--s-3); margin-left: calc(-1 * var(--s-3)); font: inherit; font-size: var(--small); font-weight: 500; color: var(--blue-ui); background: none; border: 0; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; cursor: pointer; }
.file .remove { margin-left: 0; color: var(--charcoal); }
.file .retry:hover, .file .remove:hover { color: var(--paper-fg); }
.done-list .file .bar { display: none; }
.done-list { margin-bottom: var(--s-2); }
.file .thumb.has-img { font-size: 0; }
.dd-plate #more-btn { margin-top: var(--s-4); }
#send-btn { margin-top: var(--s-4); }

/* ---------- footer ---------- */
.ft { background: var(--paper); color: var(--charcoal); padding: var(--s-7) 0 calc(var(--s-7) + env(safe-area-inset-bottom)); border-top: 1px solid var(--hairline-paper); }
.ft address { font-style: normal; }
.ft-brand { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: var(--s-5); text-decoration: none; color: var(--paper-fg); }
.ft-brand .lockup img { width: auto; height: 34px; }
.ft p + p { margin-top: var(--s-4); }
.ft a { text-decoration: none; color: var(--paper-fg); }
.ft a:hover { text-decoration: underline; text-decoration-color: var(--blue-ui); text-decoration-thickness: 2px; }
.ft-phone { font-family: var(--font-display); font-weight: 800; font-stretch: 118%; font-size: 1.5rem; }
.ft-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--hairline-paper); font-size: var(--small); }
@media (max-width: 767px) { .ft-nap a:not(.ft-brand) { display: flex; align-items: center; min-height: 44px; } }

/* ---------- motion ---------- */
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.dd-head, .dd-plate { animation: fade var(--t-base) var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
