/**
 * Support page (/support/). Loaded after home.css and docs.css, whose hero,
 * search field, section heads and FAQ it reuses.
 */

/* ── Hero ─────────────────────────────────────────── */
.sup-hero h1 { max-width: 18ch; margin-inline: auto; font-size: clamp(34px, 4.8vw, 56px); }
.sup-promise { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 26px; font-size: 14.5px; color: var(--ink-2); }
.sup-promise li { display: inline-flex; align-items: center; gap: 8px; }
.sup-promise .ico { width: 18px; height: 18px; color: var(--brand-ink); }

/* ── Quick help ───────────────────────────────────── */
.sup-quick { padding-bottom: 8px; }
.sup-ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sup-way { display: grid; gap: 4px; align-content: start; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .2s, border-color .2s, box-shadow .2s; }
.sup-way:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: var(--shadow); }
.sup-way-ico { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 12px; color: var(--brand-ink); background: color-mix(in srgb, var(--brand) 13%, var(--surface)); transition: background .2s, color .2s; }
.sup-way-ico .ico { width: 21px; height: 21px; }
.sup-way:hover .sup-way-ico { background: var(--brand); color: var(--on-brand); }
.sup-way b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.sup-way > span:last-child { font-size: 14px; color: var(--muted); }

/* ── Ticket form ──────────────────────────────────── */
.sup-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.sup-card { border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.sup-card-head { display: flex; align-items: center; gap: 14px; padding: 22px 28px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 8%, var(--surface)), var(--surface) 65%); }
.sup-card-head h2 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.sup-card-head p { font-size: 14px; color: var(--muted); }
.sup-form { display: grid; gap: 22px; padding: 26px 28px 28px; }
.sup-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sup-field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.sup-field legend, .sup-field > label, .sup-label { padding: 0; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.sup-label em { font-style: normal; font-weight: 400; color: var(--muted); }
.sup-field small { font-size: 13px; color: var(--muted); }
.sup-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.sup-field input[type="text"], .sup-field input[type="email"], .sup-field textarea {
	width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--tint); color: var(--ink); font: 400 15.5px/1.5 var(--f); transition: border-color .2s, box-shadow .2s, background .2s;
}
.sup-field textarea { resize: vertical; min-height: 150px; }
.sup-field input::placeholder, .sup-field textarea::placeholder { color: var(--muted); opacity: .8; }
.sup-field input:focus, .sup-field textarea:focus { outline: none; background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.sup-field [aria-invalid="true"], .sup-products.is-invalid { border-color: #e5484d !important; box-shadow: 0 0 0 4px rgba(229, 72, 77, .14) !important; }
.sup-products.is-invalid { border-radius: 14px; }

.sup-products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 2px; }
.sup-product { position: relative; display: grid; justify-items: center; gap: 8px; padding: 16px 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: center; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s, transform .2s; }
.sup-product:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c, var(--brand)) 45%, var(--line)); }
.sup-product input { position: absolute; opacity: 0; pointer-events: none; }
.sup-product img { width: 40px; height: 40px; border-radius: 12px; background: #fff; padding: 5px; box-shadow: inset 0 0 0 1px var(--line); }
.sup-product .tick { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; padding: 3px; border-radius: 50%; color: #fff; background: var(--c, var(--brand)); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s; }
.sup-product:has(input:checked) { border-color: var(--c, var(--brand)); background: color-mix(in srgb, var(--c, var(--brand)) 8%, var(--surface)); color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--brand)) 16%, transparent); }
.sup-product:has(input:checked) .tick { opacity: 1; transform: none; }
.sup-product:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }

.sup-drop { position: relative; display: flex; align-items: center; gap: 14px; min-height: 78px; padding: 16px 18px; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--tint); cursor: pointer; transition: border-color .2s, background .2s; }
.sup-drop:hover, .sup-drop.is-over { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.sup-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.sup-drop:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.sup-drop-ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--brand-ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.sup-drop-ico .ico { width: 20px; height: 20px; }
.sup-drop-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sup-drop-text b { font-size: 14.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.sup-drop-preview { width: 56px; height: 56px; flex: none; border-radius: 10px; object-fit: cover; box-shadow: inset 0 0 0 1px var(--line); }
.sup-drop-clear { position: relative; z-index: 1; flex: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: 500 13px/1 var(--f); cursor: pointer; }
.sup-drop-clear:hover { border-color: #e5484d; color: #e5484d; }

.sup-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 4px; }
.sup-submit .btn { padding: 14px 26px; }
.sup-submit .btn[disabled] { opacity: .7; cursor: wait; transform: none; }
.sup-note { flex: 1; min-width: 220px; font-size: 14.5px; }
.sup-note:empty { display: none; }
.sup-note.is-error { color: #d93f44; font-weight: 500; }
.sup-note.is-ok { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand-ink); font-weight: 600; }

/* ── Beside the form ──────────────────────────────── */
.sup-side { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); display: grid; gap: 16px; }
.sup-box { padding: 20px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.sup-box h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 14px; }
.sup-box p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.sup-box-soft { background: var(--tint); box-shadow: none; }
.sup-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.sup-steps li { position: relative; display: grid; gap: 2px; padding-left: 40px; counter-increment: step; }
.sup-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--brand) 14%, var(--surface)); color: var(--brand-ink); font-size: 13px; font-weight: 700; }
.sup-steps li:not(:last-child)::after { content: ""; position: absolute; left: 13.5px; top: 32px; bottom: -12px; border-left: 1.5px dashed var(--line); }
.sup-steps b { font-size: 14.5px; font-weight: 600; }
.sup-steps span { font-size: 13.5px; color: var(--muted); }
.sup-tips { display: grid; gap: 10px; }
.sup-tips li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.sup-tips .ico { width: 18px; height: 18px; flex: none; color: var(--brand-ink); margin-top: 1px; }

/* ── FAQ: where to go next ───────────────────────── */
.sup-reach { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-sm); }
.sup-reach-title { padding: 8px 10px 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.sup-reach-row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; transition: background .2s; }
.sup-reach-row:hover { background: var(--surface-2); }
.sup-reach-row .sup-way-ico { width: 40px; height: 40px; margin: 0; flex: none; }
.sup-reach-row:hover .sup-way-ico { background: var(--brand); color: var(--on-brand); }
.sup-reach-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.sup-reach-text b { font-size: 15px; font-weight: 700; color: var(--ink); }
.sup-reach-text small { font-size: 13.5px; color: var(--muted); }
.sup-reach-row .go { width: 17px; height: 17px; flex: none; color: var(--brand-ink); transition: transform .2s; }
.sup-reach-row:hover .go { transform: translateX(3px); }

@media (max-width: 1100px) {
	.sup-ways { grid-template-columns: repeat(2, 1fr); }
	.sup-grid { grid-template-columns: 1fr; }
	.sup-side { position: static; grid-template-columns: repeat(2, 1fr); }
	.sup-box-soft { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
	.sup-products { grid-template-columns: repeat(3, 1fr); }
	.sup-row { grid-template-columns: 1fr; }
	.sup-side { grid-template-columns: 1fr; }
	.sup-form { padding: 20px; }
	.sup-card-head { padding: 18px 20px; }
}
@media (max-width: 460px) {
	.sup-ways { grid-template-columns: 1fr; }
	.sup-products { grid-template-columns: repeat(2, 1fr); }
	.sup-product:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.sup-submit .btn { width: 100%; }
}
