/* ============================================================
   Stampa Veloce — file-to-print timeline landing
   Visual system: ink + paper, with a "registration mark"
   accent. Distinct from generic split-hero recipes.
   ============================================================ */

:root {
  --ink: #14161c;
  --ink-soft: #2b2f3a;
  --paper: #f6f4ee;
  --paper-2: #ffffff;
  --line: #d9d4c7;
  --line-strong: #c2bcab;
  --accent: #ff4d2e;        /* registration-mark red */
  --accent-2: #1f6feb;      /* proof blue */
  --cyan: #19b6c9;
  --muted: #6b6f7a;
  --ok: #1d9d6b;
  --shadow: 0 18px 50px -28px rgba(20, 22, 28, .45);
  --shadow-sm: 0 8px 24px -16px rgba(20, 22, 28, .5);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 88% -8%, rgba(31, 111, 235, .07), transparent 60%),
    radial-gradient(700px 420px at -6% 10%, rgba(255, 77, 46, .06), transparent 55%),
    var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.wrap { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid var(--accent);
  background: radial-gradient(circle, var(--accent) 0 2px, transparent 3px);
}

.muted { color: var(--muted); }

/* ---------- Scroll progress ---------- */
.progress-track {
  position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60;
  background: transparent; pointer-events: none;
}
.progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--cyan));
  transition: width .08s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(246, 244, 238, .82);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 1.2rem;
  padding: .85rem 0;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; position: relative;
  background: var(--ink); flex: none;
}
.brand-mark::before,
.brand-mark::after {
  content: ""; position: absolute; background: var(--accent);
}
.brand-mark::before { left: 50%; top: 5px; bottom: 5px; width: 2px; transform: translateX(-50%); }
.brand-mark::after { top: 50%; left: 5px; right: 5px; height: 2px; transform: translateY(-50%); }
.brand-name { font-size: 1.02rem; }
.brand-name small { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: 1.3rem; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink-soft); }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  text-decoration: none; font-weight: 700; font-size: .9rem;
  padding: .55rem 1rem; border-radius: 999px; background: var(--ink); color: #fff;
}
.nav-cta:hover { background: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; cursor: pointer;
  font-weight: 700; text-decoration: none; border: 0; font-size: .98rem;
  padding: .85rem 1.4rem; border-radius: 999px; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(255,77,46,.6); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }

/* ============================================================
   HERO — timeline-first (file upload -> pickup/shipping)
   ============================================================ */
.hero { padding: 3rem 0 2.5rem; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.6rem; align-items: center;
}
.hero-copy h1 span { color: var(--accent); }
.hero-lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.hero-mini {
  display: flex; gap: 1.6rem; margin-top: 1.8rem; padding-top: 1.4rem;
  border-top: 1px dashed var(--line-strong); flex-wrap: wrap;
}
.hero-mini div strong { display: block; font-size: 1.05rem; }
.hero-mini div span { font-size: .82rem; color: var(--muted); }

/* Process timeline (vertical, in hero card) */
.timeline-card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.timeline-card-media { position: relative; }
.timeline-card-media img { width: 100%; height: 190px; object-fit: cover; }
.timeline-card-media .tag {
  position: absolute; left: 14px; bottom: 14px; background: rgba(20,22,28,.82); color: #fff;
  font-size: .72rem; font-weight: 600; padding: .35rem .7rem; border-radius: 999px; backdrop-filter: blur(4px);
}
.timeline { list-style: none; margin: 0; padding: 1.2rem 1.3rem 1.4rem; counter-reset: step; }
.timeline li {
  position: relative; padding: .7rem 0 .7rem 2.6rem; counter-increment: step;
}
.timeline li::before {
  content: counter(step); position: absolute; left: 0; top: .6rem;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: .85rem; font-weight: 800; color: #fff; background: var(--ink); z-index: 1;
}
.timeline li:not(:last-child)::after {
  content: ""; position: absolute; left: 14px; top: 2.2rem; bottom: -.4rem; width: 2px;
  background: linear-gradient(var(--accent), var(--line-strong));
}
.timeline li.is-active::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(255,77,46,.18); }
.timeline li h4 { margin: 0; font-size: .98rem; }
.timeline li p { margin: .15rem 0 0; font-size: .85rem; color: var(--muted); }

/* ============================================================
   SECTION shells
   ============================================================ */
section { padding: 3.4rem 0; }
.section-head { max-width: 60ch; margin-bottom: 1.8rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ============================================================
   FILE CHECKLIST — signature: file readiness checker (interactive)
   ============================================================ */
.checker { background: linear-gradient(180deg, #fff, var(--paper)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.checker-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2.4rem; align-items: start; }
.checker-visual {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.checker-visual img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.gauge {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  background: rgba(255,255,255,.94); border-radius: var(--radius-sm); padding: .9rem 1rem; backdrop-filter: blur(4px);
  border: 1px solid var(--line);
}
.gauge-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .82rem; font-weight: 600; }
.gauge-bar { height: 9px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: .5rem; }
.gauge-fill { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--ok)); transition: width .35s ease; }
.gauge-note { margin: .55rem 0 0; font-size: .78rem; color: var(--muted); }

.checklist { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.check-item {
  display: flex; gap: .9rem; align-items: flex-start; padding: .85rem 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .12s ease;
}
.check-item:hover { border-color: var(--line-strong); transform: translateX(2px); }
.check-item .box {
  flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line-strong);
  display: grid; place-items: center; margin-top: 2px; transition: all .2s ease; background: #fff;
}
.check-item .box::after {
  content: "✓"; font-size: .9rem; font-weight: 900; color: #fff; opacity: 0; transform: scale(.4); transition: all .18s ease;
}
.check-item.done { border-color: var(--ok); background: #f1faf5; }
.check-item.done .box { background: var(--ok); border-color: var(--ok); }
.check-item.done .box::after { opacity: 1; transform: scale(1); }
.check-item h4 { margin: 0; font-size: .96rem; }
.check-item p { margin: .15rem 0 0; font-size: .84rem; color: var(--muted); }
.check-actions { display: flex; gap: .7rem; margin-top: 1.1rem; flex-wrap: wrap; }

/* ============================================================
   FORMAT CARDS — hover-reveal cards + bento grid
   ============================================================ */
.bento {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
}
.bento-card {
  position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow-sm);
}
.bento-card.wide { grid-column: span 2; }
.bento-card.tall { grid-row: span 2; }
.bento-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bento-card .overlay {
  position: absolute; inset: 0; padding: 1.1rem; color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, rgba(20,22,28,0) 35%, rgba(20,22,28,.82) 100%);
}
.bento-card .reveal {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .4s ease, opacity .3s ease, margin .3s ease; font-size: .85rem; margin-top: 0;
}
.bento-card:hover img { transform: scale(1.07); }
.bento-card:hover .reveal { max-height: 120px; opacity: 1; margin-top: .35rem; }
.bento-card h3 { margin: 0; font-size: 1.05rem; }
.bento-card .pill {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); color: var(--ink);
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; padding: .3rem .6rem; border-radius: 999px; text-transform: uppercase;
}

/* Format spec cards (hover reveal, no images) */
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.4rem; }
.format-card {
  position: relative; padding: 1.3rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
  overflow: hidden; transition: transform .15s ease, box-shadow .25s ease;
}
.format-card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 1.5px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2), var(--cyan));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s ease;
}
.format-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.format-card:hover::before { opacity: 1; }
.format-card .ico { font-size: 1.4rem; font-weight: 800; color: var(--accent); font-family: var(--mono); }
.format-card h3 { margin: .5rem 0 .3rem; }
.format-card .specs { margin-top: .6rem; font-size: .85rem; color: var(--muted); display: grid; gap: .3rem; }
.format-card .specs span { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: .25rem; }

/* ============================================================
   REQUEST FORM
   ============================================================ */
.request { background: var(--ink); color: #efeee9; border-radius: 0; }
.request .section-head h2 { color: #fff; }
.request-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: start; }
.request-aside { display: grid; gap: 1rem; }
.request-aside .ra-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); padding: 1.1rem;
}
.request-aside .ra-card h4 { margin: 0 0 .35rem; color: #fff; }
.request-aside .ra-card p { margin: 0; font-size: .88rem; color: #b9bdc8; }
.request-aside img { border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.12); height: 150px; width: 100%; object-fit: cover; }

.form-card { background: var(--paper-2); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); color: var(--ink); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .95rem; background: #fff; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,77,46,.14);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; color: var(--muted); margin-bottom: 1rem; }
.form-consent input { margin-top: 3px; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: .8rem; }
.form-status { margin-top: .9rem; font-size: .9rem; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: var(--ok); }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq-list { display: grid; gap: .8rem; max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 1rem; padding: 1.1rem 1.2rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--ink);
}
.faq-q .chev { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: transform .25s ease, background .25s ease, color .25s ease; }
.faq-q[aria-expanded="true"] .chev { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 1.2rem 1.1rem; color: var(--ink-soft); font-size: .94rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.4rem; align-items: stretch; }
.contact-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.contact-list { display: grid; gap: 1rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .ci {
  flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line); font-weight: 800; color: var(--accent);
}
.contact-list a { color: var(--accent-2); text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.contact-list span small { display: block; font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.contact-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-media img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }

.legal-strip {
  margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px dashed var(--line-strong);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; font-size: .82rem;
}
.legal-strip strong { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ============================================================
   STICKY CTA
   ============================================================ */
.sticky-cta {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(140%);
  z-index: 55; background: var(--ink); color: #fff; border-radius: 999px;
  padding: .6rem .7rem .6rem 1.3rem; display: flex; align-items: center; gap: 1rem;
  box-shadow: 0 18px 40px -16px rgba(20,22,28,.7); transition: transform .35s cubic-bezier(.2,.8,.2,1);
  width: min(94vw, 560px);
}
.sticky-cta.show { transform: translateX(-50%) translateY(0); }
.sticky-cta span { font-size: .9rem; font-weight: 600; }
.sticky-cta strong { color: #fff; }
.sticky-cta .btn { padding: .65rem 1.1rem; margin-left: auto; white-space: nowrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #0f1116; color: #c5c8d2; padding: 2.8rem 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .9rem; }
.footer-grid a { color: #c5c8d2; text-decoration: none; display: block; padding: .25rem 0; font-size: .92rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand p { font-size: .9rem; max-width: 38ch; }
.footer-legal { font-size: .8rem; color: #8c909c; line-height: 1.8; }
.footer-bottom {
  margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: #8c909c;
}

/* ============================================================
   Legal pages
   ============================================================ */
.legal-page { padding: 3rem 0 4rem; }
.legal-page .wrap { max-width: 820px; }
.legal-page h1 { margin-bottom: .4rem; }
.legal-page .updated { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.legal-page h3 { margin-top: 1.4rem; }
.legal-page ul { padding-left: 1.2rem; }
.legal-page li { margin-bottom: .4rem; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; color: var(--accent); margin-bottom: 1.5rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid, .checker-grid, .request-grid, .contact-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .bento-card.tall { grid-row: span 1; }
  .formats { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .formats { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .legal-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-mini { gap: 1.1rem; }
  .sticky-cta span { display: none; }
  .sticky-cta { width: auto; padding: .55rem .6rem .55rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
