/* =========================================================================
   ScannerQRCodes — main stylesheet

   Visual language: a tinted mint band carries the header and the tool, plain
   white carries the editorial content below. One deep plum accent does all the
   work (buttons, links, active states), teal is the quiet second voice.
   Headings are near-black and heavy; surfaces are white cards with hairline
   borders and a very soft shadow rather than coloured fills.
   ========================================================================= */

:root {
  /* Ink */
  --ink: #16181d;
  --ink-body: #3c4149;
  --ink-muted: #6d7481;

  /* Accents */
  --plum: #8e2478;
  --plum-dark: #751c62;
  --plum-soft: #f6eaf3;
  --teal: #17a0a5;
  --teal-soft: #e0f2f2;

  /* Surfaces */
  --band: #e4f5f4;
  --band-deep: #d3edec;
  --surface: #fff;
  --surface-alt: #f6f8f8;
  --line: #e3e6e8;
  --line-strong: #cfd6d9;

  /* States */
  --danger: #d92d20;
  --danger-bg: #fdeceb;
  --success: #12a150;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(21, 32, 43, .04), 0 8px 24px rgba(21, 32, 43, .06);
  --shadow-lift: 0 2px 4px rgba(21, 32, 43, .05), 0 14px 34px rgba(21, 32, 43, .09);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html {
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: #fff;
  color: var(--ink-body);
  font-size: 17px;
  line-height: 1.55;
}

h1, h2, h3 {
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-weight: 800;
  font-size: clamp(32px, 5.4vw, 52px);
  text-align: center;
  padding: 0 12px;
}

h2 {
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 34px);
  text-align: center;
  margin: 0 0 24px;
}

h3 { font-weight: 700; }

p { line-height: 1.6; }

a {
  color: var(--plum);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

button {
  border: none;
  color: #fff;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  word-break: break-word;
  background: var(--plum);
  transition: background .18s ease, box-shadow .18s ease, transform .06s ease;
}

button:hover { background: var(--plum-dark); }
button:active { transform: translateY(1px); }

button:focus-visible,
a:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(142, 36, 120, .35);
  outline-offset: 2px;
}

svg { vertical-align: middle; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Band ───────────────────────────────────────────────────────────────── */

header,
.hero-band {
  background: var(--band);
}

.hero-band {
  padding-bottom: 56px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

header { border: none; }

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.logo:hover { text-decoration: none; }

/* The wordmark is one flex item, so the gap above applies only after the
   mark — not between "ScannerQR" and "Codes". */
.logo-text { color: var(--ink); }
.logo-text span { color: var(--plum); }

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--plum);
  color: #fff;
}

.logo-mark svg { width: 22px; height: 22px; }

/* Language menu — a white chip that opens into a soft card. */
.lang-options {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  height: 42px;
  position: relative;
  z-index: 20;
}

.lang-options li {
  visibility: hidden;
  width: 100%;
  padding: 0 14px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.lang-options li:first-child {
  visibility: visible;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  max-width: fit-content;
  text-align: right;
  box-shadow: 0 1px 2px rgba(21, 32, 43, .05);
}

.lang-options li:last-child {
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow);
}

.lang-options:hover li,
.lang-options:focus-within li { visibility: visible; }

.lang-options:hover li:first-child,
.lang-options:focus-within li:first-child {
  max-width: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-color: var(--line);
}

.lang-options a {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 40px;
  white-space: nowrap;
  color: var(--ink-body);
  text-decoration: none;
}

.lang-options li:hover a { color: var(--plum); }

/* ── Hero ───────────────────────────────────────────────────────────────── */

h1 { padding-top: 34px; }

.qr-description {
  color: var(--ink-body);
  font-size: clamp(17px, 2vw, 20px);
  text-align: center;
  max-width: 680px;
  margin: 16px auto 34px;
  padding: 0 16px;
}

/* ── Tool ───────────────────────────────────────────────────────────────── */

.container {
  max-width: 1160px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0 auto;
  padding: 0 24px;
  /* Stretch so the empty result card matches the scanner's height instead of
     collapsing to a stub beside it. */
  align-items: stretch;
}

#result-wrapper {
  display: flex;
  flex-direction: column;
}

#result-area-wrapper { flex: 1; }

.tool-wrapper {
  width: 100%;
  background: var(--surface);
  border: 1px solid rgba(21, 32, 43, .06);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-lift);
}

/* Mode switch — white chips on a soft rail, like the reference's pill row. */
.scan-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.scan-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
  box-shadow: 0 1px 2px rgba(21, 32, 43, .04);
}

.scan-tab:hover {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink);
}

.scan-tab.activebtn {
  background: var(--plum);
  border-color: var(--plum);
  color: #fff;
  box-shadow: 0 2px 8px rgba(142, 36, 120, .25);
}

.scan-tab svg { flex: 0 0 auto; opacity: .8; }

.scanner-wrapper {
  position: relative;
  background: var(--surface-alt);
  height: 300px;
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.qr-scanner {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qr-scanner.is-active { display: flex; }

/* Viewfinder corner brackets instead of the dashed outline. */
.camera-scanner::before,
.image-scanner::before {
  content: "";
  position: absolute;
  inset: 14px;
  pointer-events: none;
  border-radius: 6px;
  background:
    linear-gradient(var(--teal), var(--teal)) left top / 22px 2px no-repeat,
    linear-gradient(var(--teal), var(--teal)) left top / 2px 22px no-repeat,
    linear-gradient(var(--teal), var(--teal)) right top / 22px 2px no-repeat,
    linear-gradient(var(--teal), var(--teal)) right top / 2px 22px no-repeat,
    linear-gradient(var(--teal), var(--teal)) left bottom / 22px 2px no-repeat,
    linear-gradient(var(--teal), var(--teal)) left bottom / 2px 22px no-repeat,
    linear-gradient(var(--teal), var(--teal)) right bottom / 22px 2px no-repeat,
    linear-gradient(var(--teal), var(--teal)) right bottom / 2px 22px no-repeat;
  opacity: .55;
}

.image-scanner {
  cursor: pointer;
  flex-wrap: wrap;
}

.image-scanner.dragover {
  background: var(--teal-soft);
  border-color: var(--teal);
}

.scanner-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-body);
  text-align: center;
  padding: 28px;
  position: absolute;
  inset: 0;
}

.scanner-label svg { color: var(--teal); opacity: .75; }

#camera-not-found {
  display: none;
  color: var(--danger);
}

.rescanqrbtn {
  display: none;
  align-items: center;
  gap: 8px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  min-height: 44px;
  font-size: 16px;
}

#qr-code-previewer {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#qr-code-previewer video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
}

#qr-code-previewer img { display: none; }

#uploaded-qr-previewer {
  display: none;
  max-width: 80%;
  max-height: 236px;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.image-not-found {
  display: none;
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  z-index: 4;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.image-not-found.show { display: block; }

.loading {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: var(--radius);
  background: rgba(22, 24, 29, .55);
  align-items: center;
  justify-content: center;
}

.loading.show { display: flex; }

.loading .scanner {
  position: relative;
  width: 170px;
  height: 170px;
  border-radius: 8px;
  overflow: hidden;
}

.loading .scanner::before {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal), 0 0 22px var(--teal);
  animation: scanLine 1.3s linear infinite;
}

.loading .scanner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#fff, #fff) left top / 26px 3px no-repeat,
    linear-gradient(#fff, #fff) left top / 3px 26px no-repeat,
    linear-gradient(#fff, #fff) right top / 26px 3px no-repeat,
    linear-gradient(#fff, #fff) right top / 3px 26px no-repeat,
    linear-gradient(#fff, #fff) left bottom / 26px 3px no-repeat,
    linear-gradient(#fff, #fff) left bottom / 3px 26px no-repeat,
    linear-gradient(#fff, #fff) right bottom / 26px 3px no-repeat,
    linear-gradient(#fff, #fff) right bottom / 3px 26px no-repeat;
}

@keyframes scanLine {
  from { top: 0; }
  to   { top: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .loading .scanner::before { animation: none; top: 50%; }
  html { scroll-behavior: auto; }
}

.scanner-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

#select-camera {
  max-width: 230px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-body);
  background: #fff;
  font-size: 15px;
  font-weight: 600;
}

.beep-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-body);
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: var(--line-strong);
  transition: .25s;
}

.slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background: #fff;
  transition: .25s;
}

input:checked + .slider { background: var(--teal); }
input:checked + .slider::before { transform: translateX(18px); }

.slider.round { border-radius: 34px; }
.slider.round::before { border-radius: 50%; }

/* ── Result ─────────────────────────────────────────────────────────────── */

.result-hinttext {
  font-size: 15px;
  line-height: 46px;
  text-align: center;
  background: var(--teal-soft);
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: #0d6f73;
}

.resultarea {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.result-meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.qr-textarea {
  display: flow-root;
  padding: 12px 14px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.qr-textarea b {
  color: var(--ink-muted);
  font-weight: 600;
}

.qr-textarea > span {
  white-space: pre-wrap;
  color: var(--ink);
  font-weight: 600;
}

.result-actionbtns {
  float: right;
  margin-left: 10px;
  display: flex;
  gap: 6px;
}

.result-actionbtns button {
  min-height: 32px;
  min-width: 32px;
  padding: 0;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--plum);
}

.result-actionbtns button:hover {
  background: var(--plum-soft);
  border-color: var(--plum);
}

.result-actionbtns button.is-done {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.showFeedback {
  display: none;
  width: 100%;
  min-height: 46px;
  margin-top: 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--plum);
  border: 1px solid var(--line);
  background: #fff;
}

.showFeedback:hover {
  background: var(--plum-soft);
  border-color: var(--plum);
}

.showFeedback.show { display: block; }

/* ── Feedback dialog ────────────────────────────────────────────────────── */

#dialogBox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(22, 24, 29, .5);
}

#dialogBox.show { display: block; }

.dialogWrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 24px));
}

.dialogContent,
.thanksContent {
  padding: 26px;
  width: 100%;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lift);
}

.thanksContent {
  display: none;
  text-align: center;
}

.thanks-icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  margin-bottom: 14px;
}

.feedbackHeading { font-size: 24px; }

.feedbackDesc {
  margin-top: 8px;
  font-size: 16px;
  color: var(--ink-muted);
}

.divider {
  margin: 20px 0;
  border-top: 1px solid var(--line);
}

.customCheckbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  user-select: none;
}

.customCheckbox input { display: none; }

.customCheckbox .checkmark {
  flex: 0 0 auto;
  width: 40px;
  height: 24px;
  background: var(--line-strong);
  border-radius: 100px;
  position: relative;
  transition: background .2s;
}

.customCheckbox .checkmark::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
}

.customCheckbox input:checked + .checkmark { background: var(--teal); }
.customCheckbox input:checked + .checkmark::after { transform: translateX(16px); }

.feedbackTextarea {
  width: 100%;
  min-height: 120px;
  margin: 16px 0 20px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--ink-body);
  resize: vertical;
}

.feedbackTextarea:focus {
  outline: none;
  border-color: var(--plum);
  box-shadow: 0 0 0 3px var(--plum-soft);
}

.feedbackBtns { text-align: right; }

.feedbackBtn { min-height: 46px; }

.cancelBtn {
  color: var(--ink-body);
  background: var(--surface-alt);
  border: 1px solid var(--line);
}

.cancelBtn:hover { background: #eef1f1; }

.sendBtn { margin-left: 12px; }

.thanksTitle { margin-bottom: 8px; font-size: 24px; }

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

.homeBtn { margin-top: 24px; }

/* ── Editorial content ──────────────────────────────────────────────────── */

.main-wrapper {
  max-width: 1160px;
  margin: auto;
  padding: 64px 24px 24px;
}

.main-wrapper > section { margin-bottom: 72px; }

.seo-content { max-width: 820px; margin: 0 auto 72px; }

.seo-content h2 { text-align: center; }

.seo-content p {
  font-size: 17px;
  margin-top: 14px;
  color: var(--ink-body);
}

.seo-content strong { color: var(--ink); }

/* Features — soft tinted tiles, one accent per row rather than six colours. */
.features-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.feature-content {
  padding: 26px 24px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: box-shadow .2s ease, transform .2s ease;
}

.feature-content:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 0 18px;
  border-radius: 14px;
}

.icon-1, .icon-4 { background: var(--plum-soft); color: var(--plum); }
.icon-2, .icon-5 { background: var(--teal-soft); color: #0d7276; }
.icon-3, .icon-6 { background: #fdf0e3; color: #b45f0a; }

.feature-heading {
  margin: 0 0 10px;
  font-size: 19px;
}

.feature-text {
  font-size: 16px;
  color: var(--ink-body);
}

/* How to — a coloured dot marks each step, as in the reference. */
.how-to-uses {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.how-to-use {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.how-to-use .left,
.how-to-use .right { flex: 1 1 320px; }

.how-to-use:nth-child(even) .left { order: 2; }

.howto-figure {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.how-to-point {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.how-to-point span {
  flex: 0 0 auto;
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  font-size: 0;
  align-self: center;
}

.how-to-use:nth-child(even) .how-to-point span { background: var(--plum); }

.how-to-use .right p {
  font-size: 17px;
  margin-top: 14px;
  color: var(--ink-body);
}

.how-to-use ol {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 0 22px;
}

.how-to-use li {
  line-height: 1.55;
  font-size: 16px;
  color: var(--ink-body);
}

.how-to-use li::marker { color: var(--ink-muted); font-weight: 700; }

/* Formats */
.intro {
  text-align: center;
  max-width: 760px;
  margin: -8px auto 0;
  color: var(--ink-muted);
}

.formats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
  gap: 20px;
}

.format {
  display: flex;
  gap: 18px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.format .left {
  flex: 0 0 auto;
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.format .img {
  width: 92px;
  height: 92px;
  margin: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.format .img canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.format[data-type="ean13"] .img canvas { image-rendering: auto; }

.format .name {
  width: 100%;
  font-size: 13px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
  white-space: nowrap;
  padding: 0 10px;
  color: var(--ink-muted);
  background: #eef1f1;
}

.format .btns {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 6px;
  padding: 6px;
  background: rgba(22, 24, 29, .35);
  opacity: 0;
  transition: opacity .22s;
}

.format .left:hover .btns,
.format .left:focus-within .btns { opacity: 1; }

.format .btns button {
  width: 46px;
  min-height: 30px;
  height: 30px;
  padding: 0;
  border-radius: 7px;
}

.format .btns button.is-done { background: var(--success); }

.format .right p {
  font-size: 15px;
  color: var(--ink-body);
}

.example {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-top: 10px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.example span {
  font-weight: 500;
  color: var(--ink);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 6px;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
  background: var(--surface);
}

.faq-item[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 34px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -8px;
  border-right: 2.5px solid var(--plum);
  border-bottom: 2.5px solid var(--plum);
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -3px;
}

.faq-item p {
  margin-top: 14px;
  font-size: 16px;
  color: var(--ink-body);
}

/* Updates */
.feedback-fixes {
  background: var(--band);
  border-radius: 20px;
  padding: 8px 24px 24px;
}

.feedback-fix-heading {
  margin: 0 0 8px;
  padding: 26px 10px 6px;
  background: none;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 30px);
}

.feedback-fix-heading svg { color: var(--plum); }

.feedback-fix {
  padding: 18px 20px;
  margin: 12px 0 0;
  background: #fff;
  border-radius: var(--radius);
  font-size: 16px;
}

.feedback-fix-title {
  color: var(--ink);
  font-weight: 700;
}

.feedback-fix-title svg { color: var(--teal); margin-right: 4px; }

.feedback-fix-text { color: var(--ink-body); }

/* ── Article pages ──────────────────────────────────────────────────────── */

.article { max-width: 820px; }
.article h1 { text-align: left; padding: 0; font-size: clamp(30px, 4.5vw, 42px); }
.article h2 { text-align: left; font-size: 22px; margin: 34px 0 10px; }
.article p { margin-bottom: 12px; font-size: 17px; }
.article .updated { color: var(--ink-muted); font-size: 15px; margin-top: 12px; }

.contact-wrapper {
  min-height: 44vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.contact-wrapper h1 { text-align: center; }
.contact-wrapper p { color: var(--ink-body); }

.email-text {
  margin-top: 22px;
  font-size: 22px;
  font-weight: 700;
}

.notfound { text-align: center; padding: 80px 24px; }
.notfound h1 { text-align: center; }

.cta {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  background: var(--plum);
  color: #fff;
  font-weight: 700;
}

.cta:hover { text-decoration: none; background: var(--plum-dark); }

/* ── Footer ─────────────────────────────────────────────────────────────── */

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 40px 24px 32px;
  margin-top: 40px;
  background: var(--band);
}

.footer-links,
.policy-link,
.copyright-text {
  width: 100%;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 600;
}

.policy-link {
  padding-top: 18px;
  border-top: 1px solid var(--band-deep);
  font-size: 15px;
}

.policy-link a { margin: 0 12px; color: var(--ink-body); }
.policy-link a:hover { color: var(--plum); }

.copyright-text {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-muted);
}

.trademark {
  text-align: center;
  padding: 18px 24px 26px;
  color: var(--ink-muted);
  font-size: 13px;
  background: var(--band);
}

.trademark a { color: var(--ink-muted); text-decoration: underline; }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .formats { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
  .container { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  nav { width: calc(100% - 32px); height: 66px; }
  .logo { font-size: 19px; gap: 8px; }
  .logo-mark { width: 34px; height: 34px; border-radius: 10px; }
  .hero-band { padding-bottom: 40px; }
  h1 { padding-top: 26px; }
  .container { padding: 0 16px; }
  .tool-wrapper { padding: 16px; border-radius: 16px; }
  .scan-tab { font-size: 14px; gap: 4px; }
  .scan-tab svg { display: none; }
  .scanner-wrapper { height: 280px; }
  .main-wrapper { padding: 44px 16px 16px; }
  .main-wrapper > section { margin-bottom: 52px; }
  .seo-content { margin-bottom: 52px; }
  .how-to-uses { gap: 40px; }
  .how-to-use { gap: 20px; }
  .how-to-use:nth-child(even) .left { order: 0; }
  .format { flex-direction: column; padding: 16px; }
  .format .left { align-self: flex-start; }
  .feedback-fixes { padding: 4px 14px 18px; }
  .faq-item { padding: 16px 18px; }
}

@media (max-width: 400px) {
  .scan-btns { grid-template-columns: 1fr 1fr; }
  .scan-tab:last-child { grid-column: span 2; }
}
