/* help.2plus1.com — light, mobile-first, one question per screen */
:root {
  --blue: #0369A1;
  --dark: #075985;
  --teal: #0F766E;
  --amber: #F0A800;
  --ink: #0F172A;
  --bg: #F8FAFC;
  --line: #E2E8F0;
  --muted: #475569;
  --soft: #EFF6FF;
  --white: #fff;
  --red: #B91C1C;
  --red-bg: #FEF2F2;
  --ok-bg: #ECFDF5;
  --amber-bg: #FFF8E1;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .05);
  --display: "Lexend", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 640px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-top: 20px; padding-bottom: 48px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.0625rem; }
p { margin: 0 0 1rem; }
a { color: var(--blue); }
a:hover { color: var(--dark); }
.lead { color: var(--muted); font-size: 1.0625rem; margin-bottom: 1.25rem; }
.muted { color: var(--muted); }
.small { font-size: .9375rem; }
code { font-size: .9em; background: #f1f5f9; padding: .1em .35em; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* header / footer */
.site-head { background: var(--white); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.brand { font-family: var(--display); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; }
.brand-logo { height: 44px; width: auto; display: block; }
.brand-mark { color: var(--blue); font-weight: 700; font-size: 1.375rem; letter-spacing: -.02em; }
.brand-help { color: var(--teal); font-weight: 500; font-size: 1.125rem; }
.site-nav { display: flex; gap: 2px; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9375rem; padding: 10px 10px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.site-nav a:hover { background: var(--soft); color: var(--dark); }
@media (max-width: 420px) { .site-nav a { padding: 10px 6px; font-size: .8125rem; } .brand-logo { height: 36px; } .brand-help { font-size: 1rem; } }

.site-foot { border-top: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: .9375rem; padding: 20px 0; }
.site-foot p { margin: 0 0 .35rem; }
.site-foot a { color: var(--dark); }

/* flashes */
.flash { padding: 12px 14px; border-radius: 10px; margin: 0 0 16px; border: 1px solid var(--line); background: var(--white); }
.flash-ok { background: var(--ok-bg); border-color: #a7f3d0; color: #065f46; }
.flash-error { background: var(--red-bg); border-color: #fecaca; color: var(--red); }
.flash-info { background: var(--soft); border-color: #bfdbfe; color: var(--dark); }

/* cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
@media (min-width: 480px) { .card { padding: 26px 26px; } }

/* progress dots */
.dots { list-style: none; margin: 0 0 20px; padding: 0; display: flex; gap: 6px; }
.dots li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .75rem; color: var(--muted); font-family: var(--display); font-weight: 500; }
.dots .dot { display: block; width: 100%; height: 6px; border-radius: 3px; background: var(--line); }
.dots .done .dot { background: var(--teal); }
.dots .now .dot { background: var(--blue); }
.dots .now { color: var(--dark); }

/* forms */
label, .label { display: block; font-weight: 600; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: .9375rem; margin: -2px 0 8px; }
.field { margin-bottom: 18px; }
input[type=text], input[type=email], input[type=tel], input[type=search], textarea, select {
  width: 100%;
  font: inherit;
  font-size: 1.0625rem;
  padding: 11px 13px;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}
textarea { min-height: 150px; resize: vertical; line-height: 1.45; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(3, 105, 161, .18); outline: none; }
input[type=file] { width: 100%; font: inherit; padding: 10px; border: 1px dashed #94a3b8; border-radius: 10px; background: var(--white); }
input[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--red); }
.err { color: var(--red); font-size: .9375rem; margin-top: 6px; }
.err-list { background: var(--red-bg); border: 1px solid #fecaca; color: var(--red); padding: 12px 14px 12px 30px; border-radius: 10px; margin: 0 0 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 600; font-size: 1.0625rem;
  min-height: 48px; padding: 10px 22px; border-radius: 10px; border: 1px solid transparent;
  background: var(--blue); color: #fff; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--dark); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-wide { width: 100%; }
.btn-ghost { background: transparent; color: var(--dark); border-color: #cbd5e1; }
.btn-ghost:hover { background: var(--soft); color: var(--dark); }
.btn-link { background: none; border: 0; color: var(--blue); padding: 10px 6px; text-decoration: underline; font-family: var(--body); font-weight: 600; font-size: 1rem; }
.btn-link:hover { background: none; color: var(--dark); }
.actions { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 20px; }
.actions .btn { flex: 1 1 auto; }
.actions .back { flex: 0 0 auto; }
.back { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-weight: 600; gap: 4px; }
.back:hover { color: var(--dark); }
.back::before { content: "←"; }

/* tile pickers (category / impact) — big radio tiles, no JS required */
.tiles { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 8px; padding: 0; border: 0; }
@media (min-width: 480px) { .tiles.two { grid-template-columns: 1fr 1fr; } }
.tiles legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.tile { position: relative; display: block; }
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile span.box {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 64px; padding: 12px 16px 12px 16px;
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: border-color .12s, background .12s;
}
.tile .t { font-family: var(--display); font-weight: 600; font-size: 1.0625rem; }
.tile .h { color: var(--muted); font-size: .9rem; }
.tile:hover span.box { border-color: #93c5fd; }
.tile input:checked + span.box { border-color: var(--blue); background: var(--soft); box-shadow: inset 0 0 0 1px var(--blue); }
.tile input:focus-visible + span.box { outline: 3px solid var(--amber); outline-offset: 2px; }
.tile input:checked + span.box::after { content: "✓"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--blue); font-weight: 700; }
.tile.urgent input:checked + span.box { border-color: var(--amber); background: var(--amber-bg); box-shadow: inset 0 0 0 1px var(--amber); }
.tile.urgent input:checked + span.box::after { color: #92400e; }

/* link tiles on the help centre */
.tile-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 20px; }
.tile-links a { display: flex; flex-direction: column; gap: 2px; min-height: 72px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.tile-links a:hover { border-color: var(--blue); }
.tile-links .t { font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--dark); }
.tile-links .c { color: var(--muted); font-size: .875rem; }

/* suggestions under the summary field */
.suggest { display: none; background: var(--soft); border: 1px solid #bfdbfe; border-radius: 10px; padding: 12px 14px; margin: -8px 0 18px; }
.suggest.show { display: block; }
.suggest h3 { font-size: .9375rem; color: var(--dark); margin-bottom: 6px; }
.suggest ul { list-style: none; margin: 0; padding: 0; }
.suggest li a { display: block; padding: 8px 0; min-height: 44px; display: flex; align-items: center; }

/* attachments */
.file-list { list-style: none; margin: 8px 0 0; padding: 0; }
.file-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.file-list li:first-child { border-top: 0; }
.file-list .sz { color: var(--muted); white-space: nowrap; }
.file-list label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin: 0; min-height: 44px; }
.paste-hint { color: var(--muted); font-size: .875rem; margin-top: 6px; display: none; }
.js .paste-hint { display: block; }

/* review card */
.review { margin: 0; }
.review .row { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.review .row:first-child { border-top: 0; padding-top: 0; }
.review dt { font-family: var(--display); font-weight: 600; font-size: .9375rem; color: var(--muted); grid-column: 1; }
.review dd { margin: 0; grid-column: 1; white-space: pre-wrap; overflow-wrap: anywhere; }
.review .edit { grid-column: 2; grid-row: 1 / span 2; align-self: start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-weight: 600; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* confirmation */
.done { text-align: center; }
.done .ref { font-family: var(--display); font-weight: 700; font-size: 3rem; color: var(--blue); letter-spacing: .04em; margin: 8px 0 4px; }
.done .ref-label { color: var(--muted); margin-bottom: 1.25rem; }
.outage { background: var(--amber-bg); border: 2px solid var(--amber); border-radius: var(--radius); padding: 18px 16px; margin: 0 0 20px; text-align: center; }
.outage strong { font-family: var(--display); font-size: 1.125rem; display: block; margin-bottom: 4px; }
.outage a.btn { background: #92400e; margin-top: 8px; }
.next { text-align: left; }
.next ol { padding-left: 1.25rem; margin: 0; }
.next li { margin-bottom: .5rem; }
.link-box { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .9375rem; overflow-wrap: anywhere; text-align: left; }

/* ticket view */
.ticket-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.ticket-head .meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--muted); font-size: .9375rem; }
.pill { display: inline-block; font-family: var(--display); font-weight: 600; font-size: .8125rem; padding: 3px 10px; border-radius: 999px; background: var(--line); color: var(--ink); white-space: nowrap; }
.pill-open { background: #dbeafe; color: var(--dark); }
.pill-pending { background: var(--amber-bg); color: #92400e; }
.pill-closed { background: #e2e8f0; color: #334155; }
.prio-urgent { color: var(--red); font-weight: 600; }
.prio-high { color: #92400e; font-weight: 600; }

.thread { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 92%; border-radius: var(--radius); padding: 12px 14px; border: 1px solid var(--line); background: var(--white); }
.msg.in { align-self: flex-end; background: var(--soft); border-color: #bfdbfe; border-bottom-right-radius: 4px; }
.msg.out { align-self: flex-start; border-left: 4px solid var(--teal); border-bottom-left-radius: 4px; }
.msg.system { align-self: center; max-width: 100%; background: transparent; border: 0; color: var(--muted); font-size: .9rem; text-align: center; padding: 2px 0; }
.msg .who { display: flex; justify-content: space-between; gap: 10px; font-size: .875rem; color: var(--muted); margin-bottom: 4px; }
.msg .who b { color: var(--ink); font-family: var(--display); font-weight: 600; }
.msg .body p:last-child { margin-bottom: 0; }
.msg .body img { max-width: 100%; height: auto; }
.msg .body blockquote { border-left: 3px solid var(--line); margin: .5rem 0; padding-left: 10px; color: var(--muted); }
.msg .atts { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.msg .atts a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); font-size: .875rem; text-decoration: none; color: var(--dark); }
.msg .atts a:hover { border-color: var(--blue); }
.msg .audio { margin-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.msg .audio audio { width: 100%; max-width: 420px; height: 40px; }

/* ticket list */
.tlist { list-style: none; margin: 0; padding: 0; }
.tlist li { border-top: 1px solid var(--line); }
.tlist li:first-child { border-top: 0; }
.tlist a { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 4px; text-decoration: none; color: var(--ink); min-height: 44px; }
.tlist a:hover { background: var(--bg); }
.tlist .subj { font-weight: 600; grid-column: 1; }
.tlist .meta { grid-column: 1; color: var(--muted); font-size: .9rem; }
.tlist .pill { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

/* article list */
.alist { list-style: none; margin: 0; padding: 0; }
.alist li { border-top: 1px solid var(--line); padding: 12px 0; }
.alist li:first-child { border-top: 0; padding-top: 0; }
.alist a { font-family: var(--display); font-weight: 600; text-decoration: none; display: inline-block; padding: 4px 0; }
.alist p { margin: 2px 0 0; color: var(--muted); font-size: .9375rem; }
.search { display: flex; gap: 8px; margin-bottom: 20px; }
.search input { flex: 1; }
.search .btn { flex: 0 0 auto; padding: 10px 16px; }
.article h2 { margin-top: 1.5rem; }
.article img { max-width: 100%; height: auto; }
.feedback { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.feedback form { display: inline; }
.feedback .btn { min-width: 80px; }

.home-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 20px; }
.home-grid a { display: block; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.home-grid a:hover { border-color: var(--blue); }
.home-grid .t { font-family: var(--display); font-weight: 600; font-size: 1.125rem; color: var(--dark); display: block; }
.home-grid .c { color: var(--muted); }

.hide { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
