/* Shop Light shared components: the Sam chat, the price builder, the free-sample form,
   the instant mockup and the private portal. Every color, font and radius is a variable so
   each page skins them without touching this file. Set the variables on :root or on any
   wrapper. Nothing here styles the page itself. */
:root {
  --sl-font: inherit;             /* body face for the components */
  --sl-font-display: inherit;     /* headings inside the components */
  --sl-ink: #111;                 /* text */
  --sl-muted: #6b6b6b;            /* secondary text */
  --sl-bg: #fff;                  /* component surface */
  --sl-bg-2: #f4f4f2;             /* secondary surface (bubbles, inputs) */
  --sl-line: rgba(0, 0, 0, .14);  /* borders */
  --sl-accent: #f5b63c;           /* the brand light */
  --sl-accent-ink: #111;          /* text on the accent */
  --sl-me: #111;                  /* the visitor's bubble */
  --sl-me-ink: #fff;
  --sl-radius: 18px;
  --sl-radius-sm: 10px;
  --sl-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45);
  --sl-focus: 0 0 0 3px color-mix(in srgb, var(--sl-accent) 55%, transparent);
}
.sl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* The components set display on forms and rows; the hidden attribute must still win. */
.sam-panel[hidden], .sam-ui [hidden], .q [hidden], .lead [hidden], .pt [hidden], [data-pt-app][hidden] { display: none !important; }

/* ---------- buttons shared by the components ---------- */
.sl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--sl-ink); background: var(--sl-ink); color: var(--sl-bg); font: inherit; font-family: var(--sl-font); font-weight: 650; font-size: 16px; cursor: pointer; text-decoration: none; transition: transform .15s ease, background .15s ease, color .15s ease; }
.sl-btn:hover { transform: translateY(-1px); }
.sl-btn:focus-visible { outline: none; box-shadow: var(--sl-focus); }
.sl-btn-accent { background: var(--sl-accent); border-color: var(--sl-accent); color: var(--sl-accent-ink); }
.sl-btn-line { background: transparent; color: var(--sl-ink); }
.sl-btn[disabled] { opacity: .55; cursor: default; transform: none; }
.sl-chip-ai { display: inline-block; font-weight: 800; font-size: 11px; letter-spacing: .1em; background: var(--sl-accent); color: var(--sl-accent-ink); padding: 2px 6px; border-radius: 4px; vertical-align: 2px; line-height: 1.2; }

/* ---------- Sam: the floating button ---------- */
.sam-fab { position: fixed; z-index: 110; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 20px 0 14px; border-radius: 999px; border: 0; background: var(--sl-ink); color: var(--sl-bg); font-family: var(--sl-font); font-weight: 700; font-size: 16px; cursor: pointer; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6); transition: transform .18s ease; }
.sam-fab:hover { transform: translateY(-2px); }
.sam-fab:focus-visible { outline: none; box-shadow: var(--sl-focus); }
.sam-fab .sam-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sl-accent); box-shadow: 0 0 0 0 var(--sl-accent); animation: sam-pulse 2.2s infinite; }
@keyframes sam-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sl-accent) 70%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
body.sam-open .sam-fab { display: none; }

/* ---------- Sam: the panel ---------- */
.sam-panel { position: fixed; z-index: 120; inset: 0; display: flex; }
.sam-panel[hidden] { display: none; }
.sam-ui { display: flex; flex-direction: column; width: 100%; height: 100%; background: var(--sl-bg); color: var(--sl-ink); font-family: var(--sl-font); overflow: hidden; }
@media (min-width: 768px) {
  .sam-panel { inset: auto 24px 24px auto; width: 420px; height: min(680px, calc(100vh - 48px)); }
  .sam-panel .sam-ui { border-radius: var(--sl-radius); border: 1px solid var(--sl-line); box-shadow: var(--sl-shadow); }
  .sam-panel:not([hidden]) .sam-ui { animation: sam-pop .22s cubic-bezier(.2, .7, .2, 1); }
}
@keyframes sam-pop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
body.sam-open { overflow: hidden; }
@media (min-width: 768px) { body.sam-open { overflow: auto; } }
.sam-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--sl-ink); color: var(--sl-bg); }
.sam-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--sl-accent); color: var(--sl-accent-ink); font-family: var(--sl-font-display); font-weight: 800; font-size: 15px; letter-spacing: .04em; }
.sam-who { flex: 1; min-width: 0; }
.sam-who b { display: block; font-family: var(--sl-font-display); font-weight: 700; font-size: 19px; line-height: 1.1; }
.sam-who > span { display: block; font-size: 13px; line-height: 1.3; opacity: .8; }
.sam-x { width: 44px; height: 44px; border: 0; background: transparent; color: inherit; font-size: 30px; line-height: 1; cursor: pointer; border-radius: 10px; }
.sam-x:hover { background: rgba(255, 255, 255, .12); }
.sam-disclose { margin: 0; padding: 9px 16px; font-size: 13px; line-height: 1.4; background: color-mix(in srgb, var(--sl-accent) 18%, var(--sl-bg)); color: var(--sl-ink); border-bottom: 1px solid var(--sl-line); }
.sam-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.msg { max-width: 88%; display: flex; flex-direction: column; gap: 4px; }
.msg-sam { align-self: flex-start; }
.msg-me { align-self: flex-end; align-items: flex-end; }
.bubble { padding: 11px 14px; border-radius: 16px; font-size: 15.5px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.msg-sam .bubble { background: var(--sl-bg-2); border: 1px solid var(--sl-line); border-bottom-left-radius: 5px; }
.msg-me .bubble { background: var(--sl-me); color: var(--sl-me-ink); border-bottom-right-radius: 5px; }
.msg-meta { margin: 0; font-size: 12px; font-weight: 600; color: var(--sl-muted); display: flex; gap: 6px; align-items: center; }
.msg-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.msg-act { font: inherit; font-size: 13.5px; font-weight: 600; padding: 6px 11px; min-height: 34px; border-radius: 999px; border: 1.5px solid var(--sl-line); background: transparent; cursor: pointer; color: var(--sl-ink); }
.msg-act:hover { border-color: var(--sl-ink); }
.sam-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sam-chip { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 12px; min-height: 38px; border-radius: 999px; border: 1.5px solid var(--sl-ink); background: transparent; cursor: pointer; color: var(--sl-ink); text-align: left; }
.sam-chip:hover { background: var(--sl-ink); color: var(--sl-bg); }
.mini { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; width: 100%; max-width: 360px; align-self: flex-end; background: var(--sl-bg); border: 1.5px solid var(--sl-ink); border-radius: 14px; padding: 6px; }
.mini label { grid-column: 1 / -1; font-size: 13px; font-weight: 600; padding: 2px 6px 0; }
.mini input { min-width: 0; height: 42px; border: 0; padding: 0 8px; font: inherit; font-size: 16px; background: transparent; color: inherit; }
.mini input:focus { outline: none; }
.mini .sl-btn { min-height: 42px; }
.mini-err { grid-column: 1 / -1; color: #c0392b; font-size: 13px; font-weight: 600; margin: 0 6px; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; background: var(--sl-bg-2); border: 1px solid var(--sl-line); border-radius: 16px; border-bottom-left-radius: 5px; align-self: flex-start; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--sl-muted); opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  .typing i { animation: sam-blink 1.2s infinite ease-in-out; }
  .typing i:nth-child(2) { animation-delay: .2s; }
  .typing i:nth-child(3) { animation-delay: .4s; }
}
@keyframes sam-blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.sam-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--sl-line); background: var(--sl-bg); }
.sam-form textarea { resize: none; min-height: 48px; max-height: 140px; padding: 12px 14px; border: 1.5px solid var(--sl-line); border-radius: 12px; font: inherit; font-size: 16px; line-height: 1.4; background: var(--sl-bg-2); color: inherit; }
.sam-form textarea:focus { outline: none; border-color: var(--sl-ink); box-shadow: var(--sl-focus); }
.sam-form .sl-btn { min-height: 48px; }
.sam-call { margin: 0; padding: 8px 16px 12px; font-size: 13.5px; color: var(--sl-muted); background: var(--sl-bg); }
.sam-call a { font-weight: 700; color: var(--sl-ink); }
.fallback { background: var(--sl-bg); border: 1.5px solid #c0392b; border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.fallback p { margin: 0; font-size: 15px; }
.fallback textarea, .fallback input { width: 100%; border: 1.5px solid var(--sl-line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 16px; background: var(--sl-bg-2); color: inherit; }
.fallback textarea { min-height: 84px; resize: vertical; }
.fallback .sl-btn { justify-self: start; }
/* inline mount ([data-sam-inline]) */
[data-sam-inline] .sam-ui { height: min(640px, 80vh); min-height: 480px; border-radius: var(--sl-radius); border: 1px solid var(--sl-line); }

/* ---------- the price builder ([data-quote]) ---------- */
.q { font-family: var(--sl-font); color: var(--sl-ink); display: grid; gap: 22px; }
.q-group { display: grid; gap: 10px; }
.q-label { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sl-muted); }
.q-opts { display: grid; gap: 8px; }
@media (min-width: 640px) { .q-opts { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.q-opt { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border: 1.5px solid var(--sl-line); border-radius: var(--sl-radius-sm); background: var(--sl-bg); cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.q-opt:hover { border-color: var(--sl-ink); }
.q-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.q-opt .q-box { width: 22px; height: 22px; margin-top: 2px; border: 2px solid var(--sl-ink); border-radius: 6px; display: grid; place-items: center; flex: none; transition: background .15s ease; }
.q-opt .q-box::after { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--sl-accent-ink); opacity: 0; transform: scale(.4); transition: transform .15s ease, opacity .15s ease; }
.q-opt.is-on { border-color: var(--sl-ink); box-shadow: 0 0 0 1px var(--sl-ink); }
.q-opt.is-on .q-box { background: var(--sl-accent); border-color: var(--sl-accent); }
.q-opt.is-on .q-box::after { opacity: 1; transform: scale(1); }
.q-opt input:focus-visible ~ .q-box { box-shadow: var(--sl-focus); }
.q-name { font-weight: 700; font-size: 16px; line-height: 1.25; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.q-price { font-family: var(--sl-font-display); font-weight: 700; white-space: nowrap; }
.q-short { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--sl-muted); }
.q-trades { display: flex; flex-wrap: wrap; gap: 6px; }
.q-trade { font: inherit; font-size: 14px; font-weight: 600; padding: 7px 12px; min-height: 36px; border-radius: 999px; border: 1.5px solid var(--sl-line); background: transparent; color: var(--sl-ink); cursor: pointer; }
.q-trade[aria-pressed="true"] { background: var(--sl-ink); color: var(--sl-bg); border-color: var(--sl-ink); }
.q-sum { display: grid; gap: 14px; padding: 20px; border-radius: var(--sl-radius); background: var(--sl-ink); color: var(--sl-bg); }
.q-tot { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.q-tot p { margin: 0; }
.q-tot .q-k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.q-tot .q-v { font-family: var(--sl-font-display); font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.q-tot .q-v small { font-size: 14px; font-weight: 600; letter-spacing: 0; opacity: .75; margin-left: 4px; }
.q-lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; opacity: .85; }
.q-lines li { display: flex; justify-content: space-between; gap: 12px; }
.q-note { margin: 0; font-size: 13px; line-height: 1.45; opacity: .75; }
.q-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.q-sum .sl-btn-line { color: var(--sl-bg); border-color: color-mix(in srgb, var(--sl-bg) 50%, transparent); }
.q-send { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.q-send input { min-width: 0; height: 46px; border: 1.5px solid color-mix(in srgb, var(--sl-bg) 40%, transparent); border-radius: 999px; padding: 0 16px; font: inherit; font-size: 16px; background: transparent; color: var(--sl-bg); }
.q-send input::placeholder { color: color-mix(in srgb, var(--sl-bg) 60%, transparent); }
.q-send input:focus { outline: none; border-color: var(--sl-accent); box-shadow: var(--sl-focus); }
.q-msg { margin: 0; font-size: 14px; font-weight: 600; }
.q-msg.is-err { color: #ff8f7a; }
.q-msg.is-ok { color: var(--sl-accent); }

/* ---------- the free sample form ([data-lead]) ---------- */
.lead { font-family: var(--sl-font); color: var(--sl-ink); display: grid; gap: 12px; }
.lead-row { display: grid; gap: 12px; }
@media (min-width: 640px) { .lead-row { grid-template-columns: 1fr 1fr; } }
.lead-f { display: grid; gap: 6px; }
.lead-f label { font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.lead-f input, .lead-f select { width: 100%; height: 52px; border: 1.5px solid var(--sl-line); border-radius: var(--sl-radius-sm); padding: 0 14px; font: inherit; font-size: 17px; background: var(--sl-bg); color: inherit; }
.lead-f input:focus, .lead-f select:focus { outline: none; border-color: var(--sl-ink); box-shadow: var(--sl-focus); }
.lead-f input::placeholder { color: var(--sl-muted); }
.lead-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lead-acts .sl-btn { min-height: 54px; padding: 0 24px; font-size: 17px; }
.lead-fine { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--sl-muted); }
.lead-msg { margin: 0; font-size: 15px; font-weight: 600; }
.lead-msg.is-err { color: #c0392b; }
.lead-done { display: grid; gap: 10px; padding: 24px; border-radius: var(--sl-radius); background: var(--sl-ink); color: var(--sl-bg); }
.lead-done h3 { margin: 0; font-family: var(--sl-font-display); font-size: 28px; line-height: 1.1; }
.lead-done p { margin: 0; font-size: 16px; line-height: 1.5; }
.lead-done .sl-btn { justify-self: start; background: var(--sl-accent); border-color: var(--sl-accent); color: var(--sl-accent-ink); }

/* ---------- the instant mockup ([data-mock]) ---------- */
.mock { --m-ink: #14161a; --m-bg: #fff; --m-accent: var(--sl-accent); --m-accent-ink: var(--sl-accent-ink); --m-bg-2: #f3f4f6; font-family: var(--sl-font); color: var(--m-ink); background: var(--m-bg); width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden; font-size: 10px; container-type: inline-size; }
.mock > * { flex: none; }
.mock-bar { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 1.1em 1.4em; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.mock-logo { font-family: var(--sl-font-display); font-weight: 800; font-size: 1.35em; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-call { font-weight: 700; font-size: 1.05em; padding: .55em 1em; border-radius: 999px; background: var(--m-ink); color: var(--m-bg); white-space: nowrap; }
.mock-hero { padding: 2em 1.4em 1.6em; display: grid; gap: .7em; }
.mock-kick { margin: 0; font-size: .95em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--m-accent-ink); background: var(--m-accent); display: inline-block; justify-self: start; padding: .3em .7em; border-radius: 4px; }
.mock-head { margin: 0; font-family: var(--sl-font-display); font-size: 2.3em; line-height: 1.05; letter-spacing: -.02em; font-weight: 800; }
.mock-sub { margin: 0; font-size: 1.15em; line-height: 1.4; opacity: .75; }
.mock-btn { display: inline-block; justify-self: start; margin-top: .4em; padding: .8em 1.4em; border-radius: 999px; background: var(--m-accent); color: var(--m-accent-ink); font-weight: 800; font-size: 1.15em; }
.mock-svcs { margin: 0; padding: 0 1.4em 1.4em; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .6em; }
.mock-svcs li { padding: 1em 1.1em; border-radius: .8em; background: var(--m-bg-2); font-weight: 700; font-size: 1.1em; }
.mock-rev { display: flex; align-items: center; gap: .8em; padding: 1.2em 1.4em; border-top: 1px solid rgba(0, 0, 0, .08); font-size: 1.05em; font-weight: 600; }
.mock-stars { color: #f0a800; letter-spacing: .1em; font-size: 1.2em; }
.mock-foot { margin-top: auto; padding: 1.1em 1.4em; font-size: .95em; opacity: .6; border-top: 1px solid rgba(0, 0, 0, .08); }
@container (min-width: 520px) {
  .mock-hero { grid-template-columns: 1.2fr 1fr; padding: 3em 2.4em 2.4em; }
  .mock-svcs { grid-template-columns: repeat(4, 1fr); padding: 0 2.4em 2em; }
}
.mock.is-dark { --m-ink: #f5f3ee; --m-bg: #101114; --m-bg-2: #1a1c21; }
.mock.is-dark .mock-bar, .mock.is-dark .mock-rev, .mock.is-dark .mock-foot { border-color: rgba(255, 255, 255, .1); }

/* ---------- the private portal ---------- */
.pt { font-family: var(--sl-font); color: var(--sl-ink); max-width: 980px; margin: 0 auto; padding: 40px 20px 80px; }
.pt h1 { font-family: var(--sl-font-display); font-size: 34px; margin: 0 0 20px; }
.pt-login { max-width: 460px; background: var(--sl-bg); border: 1px solid var(--sl-line); border-radius: 16px; padding: 20px; display: grid; gap: 8px; }
.pt-login label { font-weight: 600; }
.pt-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.pt-row input { height: 50px; border: 2px solid var(--sl-ink); border-radius: 10px; padding: 0 12px; font: inherit; background: var(--sl-bg); color: inherit; }
.pt-err { margin: 0; color: #c0392b; font-weight: 600; }
.pt-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0; }
.pt-bar p { margin: 0; font-weight: 600; }
.pt-filters, .pt-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-list { display: grid; gap: 14px; }
.pt-item { background: var(--sl-bg); border: 1px solid var(--sl-line); border-radius: 16px; padding: 16px 18px; }
.pt-item.has-contact { border-left: 6px solid var(--sl-accent); }
.pt-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin-bottom: 8px; }
.pt-when { font-weight: 700; }
.pt-k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 5px; background: var(--sl-bg-2); }
.pt-k-sample, .pt-k-quote { background: color-mix(in srgb, var(--sl-accent) 30%, var(--sl-bg)); }
.pt-k-callback, .pt-k-copy, .pt-k-contact { background: #e4f4e8; color: #1d6b35; }
.pt-k-message { background: #fbe4e1; color: #a32d1d; }
.pt-meta { font-size: 14px; color: var(--sl-muted); }
.pt-contact { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 6px 0 10px; font-weight: 700; }
.pt-contact a { color: inherit; }
.pt-msgs { display: grid; gap: 6px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--sl-line); }
.pt-msgs p { margin: 0; font-size: 15px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
.pt-empty { color: var(--sl-muted); }
