/* ==========================================================================
   Sign Central — site stylesheet (v2, Cloudflare Pages)
   Brand = red / teal / navy (the Sign Central logo).
   The home page wears the green "3 Lives" promotion skin via <body class="skin-3lives">.
   To end the promotion: remove that class from index.html and swap the header logo
   back to img/logo.png. Nothing else changes.
   ========================================================================== */

:root {
  /* brand (red/teal) */
  --navy: #00234d;
  --navy-deep: #001530;
  --teal: #00bab7;
  --teal-dark: #049a97;
  --teal-tint: #e7f7f6;
  --red: #de211b;
  --red-dark: #b81812;
  --warning: #e8a33d;
  --bg: #f6f7f5;
  --card: #ffffff;
  --text: #16201f;
  --muted: #5c6b69;
  --border: #dde3e1;

  /* semantic */
  --ink-on-dark: #ffffff;
  --ink-on-dark-soft: #c9d7e6;
  --ink-on-dark-muted: #9fb3c8;
  --cta: var(--red);
  --cta-hover: var(--red-dark);
  --cta-ink: #ffffff;
  --accent: var(--teal);
  --accent-dark: var(--teal-dark);
  --accent-tint: var(--teal-tint);
  --eyebrow: var(--red);
  --dark: var(--navy);
  --dark-deep: var(--navy-deep);
  --glow-a: var(--red);
  --glow-b: var(--teal);
  --grid-line: rgba(255,255,255,0.05);

  --font-display: "Space Grotesk", "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,21,48,0.10);
}

/* ---- 3 Lives promotion skin (home page only, for now) ---- */
.skin-3lives {
  --green: #206536;        /* Sign Central Dark Green */
  --green-deep: #163f22;
  --green-ink: #0f2a17;
  --lime: #77a33e;         /* Sign Central Light Green */
  --lime-dark: #5f8a2f;
  --charcoal: #2f4337;     /* wordmark charcoal-green */
  --kraft: #fbfaf6;
  --kraft-2: #f1efe7;

  --bg: var(--kraft);
  --text: #1e2621;
  --muted: #52605a;
  --border: rgba(30,38,33,0.14);
  --cta: var(--lime);
  --cta-hover: var(--lime-dark);
  --cta-ink: #0f2a17;
  --accent: var(--lime);
  --accent-dark: var(--lime-dark);
  --accent-tint: #e7f0de;
  --eyebrow: var(--lime);
  --dark: var(--green);
  --dark-deep: var(--green-deep);
  --ink-on-dark-soft: #d6e6d2;
  --ink-on-dark-muted: #a9c3a4;
  --glow-a: #9fd35e;
  --glow-b: #2f8f4e;
  --grid-line: rgba(255,255,255,0.06);
  --shadow: 0 10px 30px rgba(15,42,23,0.12);
}
.skin-3lives h1, .skin-3lives h2, .skin-3lives h3 { color: var(--green-ink); }
.skin-3lives .section-head .eyebrow { color: var(--green); }
.skin-3lives .btn-secondary { background: var(--green); color: #fff; }
.skin-3lives .btn-secondary:hover { background: var(--green-deep); }
.skin-3lives .site-header { background: rgba(22,63,34,0.92); }
.skin-3lives .main-nav a { color: #cfe3c9; }

/* ==========================================================================
   Base
   ========================================================================== */
* { box-sizing: border-box; }
.hidden { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 680px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; color: var(--dark); margin: 0 0 12px; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  font-weight: 600; color: var(--eyebrow); margin: 0 0 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.fine-print { color: var(--muted); font-size: 0.85rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  font-size: 0.98rem;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cta); color: var(--cta-ink); }
.btn-primary:hover { background: var(--cta-hover); box-shadow: 0 8px 26px rgba(0,0,0,0.18); }
.btn-secondary { background: var(--accent); color: #00251f; }
.btn-secondary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-lg { padding: 16px 34px; font-size: 1.04rem; }

/* ---------- header / nav ---------- */
.site-header {
  background: rgba(0, 35, 77, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner { display: flex; align-items: center; gap: 28px; padding: 10px 24px; }
.brand-plate {
  display: inline-flex; align-items: center;
  background: #fff; border-radius: 10px; padding: 6px 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.brand-logo { height: 40px; width: auto; display: block; }
.main-nav { display: flex; gap: 24px; margin-right: auto; }
.main-nav a { color: #b7c6d6; text-decoration: none; font-weight: 500; font-size: 0.92rem; letter-spacing: 0.01em; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; }
.btn-nav { padding: 10px 18px; font-size: 0.88rem; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav {
    order: 3; width: 100%; margin-right: 0; flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 260px; }
  .main-nav a { padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.1); }
  .nav-toggle { display: block; order: 2; }
  .btn-nav { order: 1; margin-left: auto; padding: 8px 14px; font-size: 0.82rem; }
  .header-inner { gap: 12px; padding: 8px 16px; }
  .brand-logo { height: 32px; }
}

/* ---------- dark panels (hero, page-hero, cta) ---------- */
.dark-panel { position: relative; overflow: hidden; background: var(--dark); color: #fff; }
.dark-panel::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 30%, transparent 90%);
}
.dark-panel > .wrap { position: relative; z-index: 2; }
.dark-panel h1, .dark-panel h2 { color: #fff; }
.dark-panel .lead, .dark-panel p { color: var(--ink-on-dark-soft); }
.dark-panel .eyebrow { color: var(--glow-a); }
.glow {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35; pointer-events: none;
  animation: pulse-glow 9s ease-in-out infinite alternate;
}
.glow-a { width: 480px; height: 480px; background: var(--glow-a); top: -160px; right: -120px; }
.glow-b { width: 520px; height: 520px; background: var(--glow-b); bottom: -220px; left: -160px; animation-delay: 2s; }
@keyframes pulse-glow { 0% { opacity: 0.22; transform: scale(1); } 100% { opacity: 0.4; transform: scale(1.12); } }

.page-hero { padding: 76px 0 60px; }
.page-hero .btn { margin-top: 20px; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--accent-tint); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p:last-child { margin-bottom: 0; }
.lead-narrow { max-width: 680px; font-size: 1.08rem; color: var(--muted); }

/* ==========================================================================
   Home — 3 Lives hero
   ========================================================================== */
.hero-3l { padding: 96px 0 0; }
.hero-3l-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
}
.hero-3l h1 { margin-bottom: 20px; }
.hero-3l .lead { font-size: 1.2rem; max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-visual { position: relative; min-height: 380px; }
.hero-printer {
  position: relative; z-index: 2; width: 100%;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.45));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-lockup {
  position: absolute; z-index: 3; right: -6px; top: -26px;
  width: clamp(150px, 20vw, 210px);
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35));
  transform: rotate(4deg);
}
.hero-visual .caption {
  position: absolute; left: 0; bottom: -6px; z-index: 3;
  font-size: 0.78rem; color: var(--ink-on-dark-muted); margin: 0;
}

/* three-lives strip under the hero */
.lives-strip {
  position: relative; z-index: 2;
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.14);
}
.life {
  padding: 26px 22px 30px;
  display: flex; gap: 16px; align-items: flex-start;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.life:last-child { border-right: none; }
.life-num {
  font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; line-height: 1;
  color: var(--glow-a);
}
.life strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: #fff; margin-bottom: 4px; }
.life span { font-size: 0.9rem; color: var(--ink-on-dark-soft); }

@media (max-width: 900px) {
  .hero-3l { padding-top: 64px; }
  .hero-3l-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { min-height: 0; margin-top: 8px; padding-right: 110px; }
  .hero-lockup { top: -6px; right: 0; width: 128px; }
  .lives-strip { grid-template-columns: 1fr; margin-top: 40px; }
  .life { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); padding: 18px 4px; }
  .life:last-child { border-bottom: none; }
}

/* ==========================================================================
   Home — the loop (how it works)
   ========================================================================== */
.loop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.loop-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.loop-card figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--accent-tint); position: relative; }
.loop-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.loop-card:hover figure img { transform: scale(1.04); }
.loop-card .step {
  position: absolute; left: 14px; top: 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em;
  background: var(--dark); color: #fff; padding: 6px 10px; border-radius: 999px;
}
.loop-card .body { padding: 22px 22px 26px; }
.loop-card h3 { margin-bottom: 8px; font-size: 1.25rem; }
.loop-card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.loop-card p.learn { margin-top: 12px; font-weight: 600; font-size: 0.9rem; }
.loop-card p.learn a { color: var(--accent-dark); text-decoration: none; }
.loop-card p.learn a:hover { text-decoration: underline; }
.skin-3lives .loop-card p.learn a { color: var(--green); }
.lives-strip a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.loop-return {
  margin-top: 22px;
  display: flex; align-items: center; gap: 14px;
  background: var(--dark); color: #fff; border-radius: var(--radius); padding: 18px 22px;
}
.loop-return .icon { flex-shrink: 0; width: 40px; height: 40px; }
.loop-return p { margin: 0; color: var(--ink-on-dark-soft); }
.loop-return strong { color: #fff; }
@media (max-width: 860px) { .loop-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Home — flatbed printer feature + comparison
   ========================================================================== */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-split.reverse > :first-child { order: 2; }
.feature-media {
  border-radius: var(--radius); overflow: hidden; background: var(--dark); position: relative;
  box-shadow: var(--shadow);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-media.printer { padding: 36px 28px 28px; }
.feature-media.printer img { object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.4)); }
.feature-media .tag {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255,255,255,0.14); color: #fff; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px);
}
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.02rem; }
.check-list svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; color: var(--accent-dark); }
.skin-3lives .check-list svg { color: var(--green); }

.compare { margin-top: 32px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.compare table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare tr:last-child td { border-bottom: none; }
.compare th { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--accent-tint); }
.compare th:last-child, .compare td:last-child { color: var(--text); font-weight: 600; }
.compare td:first-child { color: var(--muted); font-weight: 600; width: 22%; }
.compare td:nth-child(2) { color: var(--muted); }
@media (max-width: 860px) {
  .feature-split, .feature-split.reverse { grid-template-columns: 1fr; gap: 28px; }
  .feature-split.reverse > :first-child { order: 0; }
  .compare { overflow-x: auto; }
}

/* ==========================================================================
   Home — boards / who it's for
   ========================================================================== */
.use-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; }
.use-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.use-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.use-card p { color: var(--muted); font-size: 0.93rem; margin: 0; }
.use-card .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-tint); display: grid; place-items: center; margin-bottom: 14px; color: var(--accent-dark); }
.skin-3lives .use-card .ico { color: var(--green); }

/* ==========================================================================
   Services grid (home + services)
   ========================================================================== */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
.service-card {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1;
  text-decoration: none; background: var(--dark); border: 1px solid rgba(0,0,0,0.08); isolation: isolate;
}
.service-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; mix-blend-mode: luminosity; transition: opacity 0.2s ease, transform 0.35s ease; }
.service-card img.svg { object-fit: contain; padding: 22%; opacity: 0.92; mix-blend-mode: normal; }
.service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(0,0,0,0.15), rgba(0,0,0,0.65)); }
.service-card:hover img { opacity: 0.7; transform: scale(1.06); }
.service-card:hover { border-color: var(--accent); }
.service-card span {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14px 12px 12px;
  color: #fff; font-weight: 600; font-size: 0.88rem; font-family: var(--font-display); text-align: center;
}

/* history strip */
.history-strip { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.stat-block { display: grid; gap: 14px; }
.stat { background: var(--dark); border-radius: 14px; padding: 20px 24px; border: 1px solid rgba(255,255,255,0.08); }
.stat strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--glow-a); }
.stat span { color: var(--ink-on-dark-soft); font-size: 0.88rem; }
@media (max-width: 780px) { .history-strip { grid-template-columns: 1fr; } }

/* cta band */
.cta-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 64px; padding-bottom: 64px; }
.cta-band-inner > div { flex: 1 1 420px; min-width: 0; }
.cta-band-inner p { margin: 0; }

/* timeline (about) */
.timeline { border-left: 2px solid var(--cta); padding-left: 28px; display: grid; gap: 26px; max-width: 720px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: ""; position: absolute; left: -35px; top: 4px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--dark); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--cta);
}
.timeline-year { display: block; font-family: var(--font-display); font-weight: 600; color: var(--dark); font-size: 1.1rem; margin-bottom: 4px; }

/* services page rows */
.service-detail { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: center; padding: 36px 0; border-bottom: 1px solid var(--border); }
.service-detail:last-child { border-bottom: none; }
.service-detail.reverse { grid-template-columns: 1fr 340px; }
.service-detail.reverse img { order: 2; }
.service-detail img { border-radius: 14px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.service-detail h2 { margin-bottom: 10px; font-size: 1.5rem; }
.service-detail p { color: var(--muted); }
@media (max-width: 780px) {
  .service-detail, .service-detail.reverse { grid-template-columns: 1fr; }
  .service-detail.reverse img { order: 0; }
}

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 40px; }
.contact-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.contact-card h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--red-dark); margin-bottom: 8px; }
.map-embed iframe { display: block; width: 100%; border-radius: 14px; border: 0; }

/* forms */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.form input, .form select, .form textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 10px; font-weight: 400; resize: vertical; background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.flash { background: #fff3e0; border: 1px solid var(--warning); padding: 12px 16px; border-radius: 10px; margin: 20px 0; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark-deep); color: var(--ink-on-dark-soft); padding: 56px 0 24px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-brand { display: inline-block; margin-bottom: 12px; }
.site-footer h3 { font-family: var(--font-display); color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 10px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--ink-on-dark-soft); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.copyright { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.8rem; color: var(--ink-on-dark-muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .section { padding: 60px 0; }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ==========================================================================
   Quote flow (quote.html + js/quote.js)
   ========================================================================== */
.quote-app { padding: 40px 0 120px; }
.quote-app .wrap { max-width: 760px; }
.q-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.q-card + .q-card { margin-top: 18px; }
.q-card h1 { font-size: 1.7rem; margin-bottom: 6px; }
.q-card h2 { font-size: 1.25rem; margin: 0 0 6px; }
.q-step-num {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--dark); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; margin-right: 10px; vertical-align: middle;
}
.q-sub { color: var(--muted); margin: 0 0 18px; }
.q-promise {
  display: flex; gap: 12px; align-items: flex-start; background: var(--accent-tint); border-radius: 12px; padding: 12px 14px;
  font-size: 0.92rem; color: var(--text); margin: 0 0 18px;
}
.q-promise svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--accent-dark); margin-top: 1px; }
.q-promise strong { display: block; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: block; font-weight: 600; font-size: 0.9rem; }
.field > input, .field > select, .field > textarea, .field > .mm-wrap { display: block; margin-top: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; font-weight: 400; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.code-input { font-family: var(--font-display); font-size: 1.8rem !important; letter-spacing: 0.4em; text-align: center; }
.q-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.q-error { background: #fdecec; border: 1px solid #e08a8a; color: #7a1f1f; padding: 10px 14px; border-radius: 10px; font-size: 0.92rem; margin: 12px 0 0; }
.q-ok { background: var(--accent-tint); border: 1px solid var(--accent); padding: 10px 14px; border-radius: 10px; font-size: 0.92rem; margin: 12px 0 0; }
.link-btn { background: none; border: none; color: var(--accent-dark); font-weight: 600; cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }

/* service tiles */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  background: var(--card); border: 2px solid var(--border); border-radius: 14px; padding: 14px 10px; cursor: pointer;
  font-family: var(--font-body); transition: border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.tile:hover { border-color: var(--accent); }
.tile:active { transform: scale(0.97); }
.tile.selected { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 1px var(--accent); }
.tile-label { font-size: 0.85rem; font-weight: 600; color: var(--text); line-height: 1.25; }
.tile-price { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.tile-image { width: 56px; height: 80px; object-fit: contain; }
.tile.service-tile {
  position: relative; aspect-ratio: 1 / 1; display: block; padding: 0; background: var(--dark);
  border-color: rgba(0,0,0,0.1); overflow: hidden; isolation: isolate;
}
.service-tile img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; mix-blend-mode: luminosity; transition: opacity 0.2s, transform 0.35s; }
.service-tile img.svg { object-fit: contain; padding: 22%; opacity: 0.92; mix-blend-mode: normal; }
.service-tile .emoji { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.4rem; opacity: 0.6; }
.service-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(0,0,0,0.15), rgba(0,0,0,0.7)); pointer-events: none; }
.tile.service-tile .tile-label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 10px 8px 9px; color: #fff; text-align: center; font-size: 0.8rem; }
.service-tile:hover img { opacity: 0.7; transform: scale(1.06); }
.tile.service-tile.selected { border-color: var(--accent); background: var(--dark); box-shadow: 0 0 0 2px var(--accent); }

/* chips, steppers, switches */
.field-block { margin: 0 0 16px; }
.field-block-label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1.5px solid var(--border); background: var(--card); border-radius: 999px; padding: 9px 15px; font-size: 0.88rem;
  font-weight: 600; cursor: pointer; color: var(--text); transition: border-color 0.15s, background 0.15s; font-family: var(--font-body);
}
.chip:hover { border-color: var(--accent); }
.chip.selected { background: var(--dark); border-color: var(--dark); color: #fff; }
.chip small { font-weight: 500; opacity: 0.75; margin-left: 4px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--card); }
.stepper-btn { width: 44px; height: 44px; border: none; background: var(--accent-tint); color: var(--dark); font-size: 1.3rem; font-weight: 700; cursor: pointer; display: grid; place-items: center; }
.stepper-btn:hover { background: var(--accent); color: #fff; }
.stepper-input { width: 64px; height: 44px; border: none; text-align: center; font-size: 1.05rem; font-weight: 600; font-family: var(--font-body); -moz-appearance: textfield; }
.stepper-input::-webkit-outer-spin-button, .stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-input:focus { outline: none; }
.mm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mm-row .field input { padding-right: 44px; }
.mm-wrap { position: relative; display: block; }
.mm-wrap input { width: 100%; }
.mm-wrap::after { content: "mm"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.85rem; font-weight: 600; pointer-events: none; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); cursor: pointer; }
.switch-row:last-child { border-bottom: 1px solid var(--border); }
.switch-row strong { display: block; font-size: 0.95rem; }
.switch-row span.sub { color: var(--muted); font-size: 0.85rem; font-weight: 400; }
.switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: #cfd6d3; border-radius: 999px; transition: background 0.2s; }
.switch .track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.switch input:checked + .track { background: var(--accent-dark); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

details.describe { margin-top: 14px; border: 1px dashed var(--border); border-radius: 12px; padding: 0 14px; }
details.describe summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--accent-dark); list-style: none; }
details.describe summary::-webkit-details-marker { display: none; }
details.describe[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 12px; }
details.describe .field { margin-bottom: 12px; }

/* sticky price bar */
.price-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--dark); color: #fff;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.18); padding: 12px 0; padding-bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform 0.25s ease;
}
.price-bar.show { transform: none; }
.price-bar-inner { max-width: 760px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.price-bar-text { display: flex; flex-direction: column; min-width: 0; }
.price-bar-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-on-dark-muted); }
.price-bar-value { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price-bar-value small { font-size: 0.8rem; font-weight: 500; color: var(--ink-on-dark-soft); }
.price-bar .btn { flex-shrink: 0; }

/* result + send */
.price-block { background: var(--accent-tint); border-radius: 12px; padding: 18px 20px; margin: 0 0 18px; }
.price-big { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--dark); line-height: 1.1; }
.price-big small { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.price-line { font-size: 0.93rem; color: var(--muted); margin: 6px 0 0; }
.price-total { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--dark); margin-top: 10px; }
.price-total.rush { color: var(--red-dark); }
.spec-recap { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(0,0,0,0.08); font-size: 0.9rem; display: grid; gap: 4px; }
.spec-recap span { color: var(--muted); font-weight: 600; margin-right: 6px; }
.limit-note { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }

.dropzone {
  border: 2px dashed var(--border); border-radius: 12px; padding: 22px; text-align: center; color: var(--muted); cursor: pointer;
  transition: border-color 0.15s, background 0.15s; position: relative;
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-tint); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.dropzone strong { color: var(--text); }
.file-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.file-list li { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 10px; padding: 8px 10px; font-size: 0.9rem; }
.file-list img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: #fff; }
.file-list .ext { width: 44px; height: 44px; border-radius: 8px; background: var(--dark); color: #fff; display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; }
.file-list .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; }
.file-warning { background: #fff3e0; border: 1px solid var(--warning); padding: 10px 14px; border-radius: 10px; font-size: 0.88rem; margin-top: 10px; }

.thanks-ref { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--dark); background: var(--accent-tint); display: inline-block; padding: 8px 16px; border-radius: 10px; margin: 8px 0 14px; }
