/* =============================================================
   QR3D Studio — styles.css
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f6f6f4;
  --surface:   #ffffff;
  --surface-2: #f0efec;
  --ink:       #14161c;
  --ink-2:     #4a4f5c;
  --ink-3:     #7c8290;
  --line:      #e0dfda;
  --line-2:    #cfcec8;
  --accent:    #e8541f;
  --accent-ink:#ffffff;
  --accent-sf: #fdece5;
  --ok:        #1f7a4d;
  --ok-sf:     #e4f4ec;
  --warn:      #a35a00;
  --warn-sf:   #fdf1dd;
  --bad:       #b3261e;
  --bad-sf:    #fbe6e4;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans JP", "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(20,22,28,.06), 0 1px 3px rgba(20,22,28,.05);
  --shadow:    0 2px 4px rgba(20,22,28,.04), 0 12px 28px -12px rgba(20,22,28,.16);
  --shadow-lg: 0 4px 8px rgba(20,22,28,.05), 0 28px 60px -20px rgba(20,22,28,.24);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --maxw: 1220px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg:        #0e1014;
    --surface:   #171a21;
    --surface-2: #1f232c;
    --ink:       #eef0f4;
    --ink-2:     #b3b9c6;
    --ink-3:     #848b9a;
    --line:      #2a2f3a;
    --line-2:    #3a4150;
    --accent:    #ff6a34;
    --accent-ink:#1a0d06;
    --accent-sf: #2a1710;
    --ok:        #5fd39b;
    --ok-sf:     #10261c;
    --warn:      #ffc061;
    --warn-sf:   #2c2110;
    --bad:       #ff8a80;
    --bad-sf:    #2e1512;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow:    0 2px 4px rgba(0,0,0,.3), 0 12px 28px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 4px 8px rgba(0,0,0,.35), 0 28px 60px -20px rgba(0,0,0,.7);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:        #0e1014;
  --surface:   #171a21;
  --surface-2: #1f232c;
  --ink:       #eef0f4;
  --ink-2:     #b3b9c6;
  --ink-3:     #848b9a;
  --line:      #2a2f3a;
  --line-2:    #3a4150;
  --accent:    #ff6a34;
  --accent-ink:#1a0d06;
  --accent-sf: #2a1710;
  --ok:        #5fd39b;
  --ok-sf:     #10261c;
  --warn:      #ffc061;
  --warn-sf:   #2c2110;
  --bad:       #ff8a80;
  --bad-sf:    #2e1512;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 2px 4px rgba(0,0,0,.3), 0 12px 28px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 4px 8px rgba(0,0,0,.35), 0 28px 60px -20px rgba(0,0,0,.7);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.12; letter-spacing: -0.021em; font-weight: 650; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; inset-inline-start: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.hidden { display: none !important; }

/* =============================================================
   4. Header + language menu
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 62px;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; letter-spacing: -.02em; font-size: 1.05rem; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
}
.brand-mark svg { width: 18px; height: 18px; }
.brand b { color: var(--accent); font-weight: 700; }

.lang { position: relative; flex: none; }
.lang-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .7rem .5rem .8rem;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface); font-size: .875rem; font-weight: 550;
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out);
}
.lang-btn:hover { border-color: var(--ink-3); }
.lang-btn .chev { width: 14px; height: 14px; opacity: .55; transition: transform .22s var(--ease-out); }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-current { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 80;
  min-width: 232px; padding: .35rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-lg);
  max-height: min(70vh, 460px); overflow-y: auto;
}
.lang-menu[hidden] { display: none; }
.lang-menu li { list-style: none; }
.lang-opt {
  display: flex; width: 100%; align-items: center; gap: .65rem;
  padding: .5rem .6rem; border-radius: var(--r-sm);
  font-size: .9rem; text-align: start;
}
.lang-opt:hover { background: var(--surface-2); }
.lang-opt[aria-current="true"] { background: var(--accent-sf); color: var(--accent); font-weight: 600; }
.lang-opt .native { flex: 1; }
.lang-opt .en { font-size: .78rem; color: var(--ink-3); }
.lang-opt[aria-current="true"] .en { color: inherit; opacity: .75; }

/* =============================================================
   5. Hero + tool
   ============================================================= */
.hero { padding-block: clamp(1.1rem, 4vw, 2.75rem) 0; text-align: center; }
.hero h1 { font-size: clamp(1.6rem, 4.4vw, 2.7rem); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  margin: .6rem auto 0; max-width: 62ch;
  color: var(--ink-2); font-size: clamp(.9rem, 1.6vw, 1.075rem);
  text-wrap: balance;
}
@media (max-width: 559px) { .hero-sub { max-width: 34ch; } }

.tool { padding-block: clamp(1.1rem, 3vw, 1.75rem) 0; }
.tool-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow);
  overflow: hidden;
}
/* Mobile order: content → preview (with downloads) → design.
   Desktop: controls stacked on the left, preview pinned on the right. */
.tool-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 960px) {
  .tool-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    grid-template-areas: "content preview" "design preview";
    align-items: start;
  }
  .panel-content { grid-area: content; }
  .panel-design  { grid-area: design; }
  .panel-preview { grid-area: preview; height: 100%; }
  .panel-content, .panel-design { border-inline-end: 1px solid var(--line); }
  .panel-design { padding-top: 0; }
}
.panel { padding: clamp(1rem, 2.4vw, 1.5rem); min-width: 0; }
.panel-preview { background: var(--surface-2); }
.panel-preview + .panel-design { border-top: 1px solid var(--line); }
@media (min-width: 960px) {
  .panel-preview + .panel-design { border-top: 0; }
  .preview-sticky { position: sticky; top: 78px; }
}

.field { margin-bottom: 1.05rem; }
.field:last-child { margin-bottom: 0; }
#paneLink .field:last-child, #paneWifi .field:last-child { margin-bottom: 0; }
.field > label, .field-label {
  display: block; margin-bottom: .4rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .01em; color: var(--ink-2);
}
.hint { font-size: .78rem; color: var(--ink-3); margin-top: .35rem; }
.check-row {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .84rem; font-weight: 450; color: var(--ink-2);
  cursor: pointer; margin-bottom: 0;
}
.check-row input[type="checkbox"] {
  inline-size: 17px; block-size: 17px; margin: .1rem 0 0; flex: none;
  accent-color: var(--accent); cursor: pointer;
}

.input, .select, textarea.input {
  width: 100%; padding: .68rem .8rem;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.input:focus, .select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.input::placeholder { color: var(--ink-3); }

/* segmented control */
.seg {
  display: flex; gap: .25rem; padding: .25rem;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px;
}
.seg button {
  flex: 1; padding: .45rem .6rem; border-radius: 999px;
  font-size: .85rem; font-weight: 550; color: var(--ink-2);
  transition: background .18s var(--ease-out), color .18s var(--ease-out);
  white-space: nowrap;
}
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 600; }

/* chip rows */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  padding: .42rem .75rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: .84rem; font-weight: 500; color: var(--ink-2);
  transition: all .18s var(--ease-out);
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 600;
}

/* format cards */
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.fmt {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: .7rem .4rem; border-radius: var(--r);
  border: 1.5px solid var(--line-2); background: var(--surface);
  font-size: .78rem; font-weight: 550; color: var(--ink-2); text-align: center;
  transition: all .18s var(--ease-out);
}
.fmt svg { width: 30px; height: 30px; opacity: .8; }
.fmt:hover { border-color: var(--ink-3); }
.fmt[aria-pressed="true"] {
  border-color: var(--accent); background: var(--accent-sf); color: var(--accent);
  font-weight: 650;
}
.fmt[aria-pressed="true"] svg { opacity: 1; }

/* colour swatches */
.colors { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.color-pick {
  display: flex; align-items: center; gap: .55rem;
  padding: .45rem .55rem; border: 1px solid var(--line-2);
  border-radius: var(--r-sm); background: var(--bg);
}
/* The native colour input renders inconsistently across themes, so it is kept
   for the picker itself and the visible swatch is drawn by us. */
.color-pick { position: relative; cursor: pointer; }
.color-pick input[type="color"] {
  position: absolute; inset-inline-start: .55rem; inset-block-start: .5rem;
  inline-size: 30px; block-size: 30px; opacity: 0; border: 0; padding: 0; cursor: pointer;
}
.color-pick .sw {
  inline-size: 30px; block-size: 30px; flex: none; border-radius: 7px;
  border: 1px solid var(--line-2); background: #fff;
  box-shadow: inset 0 0 0 1px rgba(127,127,127,.22);
}
.color-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.color-pick > span { font-size: .78rem; color: var(--ink-2); line-height: 1.25; }

/* emoji / logo */
.emoji-row { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.emoji-btn {
  width: 36px; height: 36px; border-radius: 9px; font-size: 1.15rem; line-height: 1;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--surface);
  transition: all .16s var(--ease-out);
}
.emoji-btn:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.emoji-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-sf); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent); }
.file-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .8rem; border-radius: 999px;
  border: 1px dashed var(--line-2); background: var(--surface);
  font-size: .82rem; font-weight: 550; color: var(--ink-2);
}
.file-btn:hover { border-color: var(--accent); color: var(--accent); }
.link-btn { font-size: .8rem; color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; }
.link-btn:hover { color: var(--bad); }

.divider {
  display: flex; align-items: center; gap: .7rem;
  margin: 1.4rem 0 1.1rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-3);
}
.divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.divider .num {
  display: grid; place-items: center; width: 20px; height: 20px; flex: none;
  border-radius: 6px; background: var(--ink); color: var(--bg); font-size: .68rem;
}

.range-row { display: flex; align-items: center; gap: .8rem; }
input[type="range"] { flex: 1; accent-color: var(--accent); min-width: 0; }
.range-val { font-family: var(--mono); font-size: .82rem; color: var(--ink-2); min-width: 5.5ch; text-align: end; }

/* =============================================================
   6. Previews
   ============================================================= */
.preview-block { margin-bottom: .9rem; }
.preview-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; margin-bottom: .4rem;
}
.preview-head h3 { font-size: .78rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.preview-head .tag { font-size: .72rem; color: var(--ink-3); }

.qr-stage {
  display: grid; place-items: center; padding: .9rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  min-height: 190px;
}
.qr-stage canvas, .qr-stage svg { width: min(216px, 60vw) !important; height: auto !important; border-radius: 6px; }

.view3d-stage {
  position: relative;
  background: radial-gradient(120% 100% at 50% 0%, var(--surface) 0%, var(--surface) 42%, color-mix(in srgb, var(--ink) 8%, var(--surface)) 100%);
  border: 1px solid var(--line); border-radius: var(--r);
  aspect-ratio: 4 / 3; overflow: hidden;
}
#view3d { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#view3d:active { cursor: grabbing; }
.view3d-msg {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: 1.2rem; text-align: center; font-size: .86rem; color: var(--ink-3);
  background: var(--surface);
}
.view3d-msg[hidden] { display: none; }
.view3d-hint {
  position: absolute; inset-block-end: .5rem; inset-inline-start: 50%;
  transform: translateX(-50%);
  padding: .25rem .7rem; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 74%, transparent); color: var(--bg);
  font-size: .7rem; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .4s var(--ease-out);
}
.view3d-stage.ready .view3d-hint { opacity: 1; }
.view3d-stage.grabbed .view3d-hint { opacity: 0; }
.spinner {
  width: 22px; height: 22px; border-radius: 50%; margin: 0 auto .5rem;
  border: 2px solid var(--line-2); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* warnings */
.notes { display: grid; gap: .4rem; margin-bottom: .9rem; }
.note {
  display: flex; gap: .55rem; align-items: flex-start;
  padding: .55rem .7rem; border-radius: var(--r-sm);
  font-size: .8rem; line-height: 1.45;
}
.note svg { width: 15px; height: 15px; flex: none; margin-top: .13rem; }
.note.ok   { background: var(--ok-sf);   color: var(--ok); }
.note.warn { background: var(--warn-sf); color: var(--warn); }
.note.bad  { background: var(--bad-sf);  color: var(--bad); }

/* downloads */
.downloads { display: grid; gap: .5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.1rem; border-radius: var(--r-sm);
  font-weight: 600; font-size: .95rem; text-align: center;
  border: 1px solid transparent;
  transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out), background .16s var(--ease-out);
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn-primary:not(:disabled):hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-primary .sub { font-weight: 450; opacity: .8; font-size: .8rem; }
.btn-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.btn-ghost {
  background: var(--surface); border-color: var(--line-2); color: var(--ink-2);
  padding: .6rem .5rem; font-size: .85rem; font-weight: 550;
}
.btn-ghost:not(:disabled):hover { border-color: var(--ink-3); color: var(--ink); }

.privacy {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin-top: 1rem; padding: .6rem 1rem;
  font-size: .82rem; color: var(--ink-2); text-align: center;
}
.privacy svg { width: 15px; height: 15px; flex: none; color: var(--ok); }

/* =============================================================
   7. Ad slots
   ============================================================= */
.ad-slot {
  display: grid; place-items: center;
  border: 1px dashed var(--line-2); border-radius: var(--r);
  background: repeating-linear-gradient(45deg, transparent, transparent 9px, color-mix(in srgb, var(--line) 40%, transparent) 9px, color-mix(in srgb, var(--line) 40%, transparent) 18px);
  color: var(--ink-3); font-size: .72rem; font-weight: 700; letter-spacing: .18em;
}
.ad-leaderboard { min-height: 96px; margin-block: clamp(1.5rem, 4vw, 2.5rem); }
.ad-incontent  { min-height: 260px; margin-block: clamp(1.5rem, 4vw, 2.5rem); }
.ad-dialog-slot { min-height: 250px; width: 100%; margin-block: .9rem; }
.ad-toast-slot { min-height: 74px; width: 100%; }

/* download interstitial */
.ad-dialog {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 0; max-width: min(420px, 92vw); width: 100%;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
.ad-dialog::backdrop { background: rgba(10,12,16,.55); backdrop-filter: blur(3px); }
.ad-dialog-inner { padding: 1.1rem 1.2rem 1.2rem; }
.ad-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.ad-dialog-head p { font-size: .92rem; font-weight: 600; }
.ad-dialog-head .sub { font-size: .8rem; font-weight: 400; color: var(--ink-2); margin-top: .15rem; }
.icon-btn {
  width: 30px; height: 30px; flex: none; border-radius: 8px;
  display: grid; place-items: center; color: var(--ink-3);
  border: 1px solid var(--line-2); background: var(--surface);
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.icon-btn svg { width: 15px; height: 15px; }

/* corner toast */
.ad-toast {
  position: fixed; inset-block-end: 1rem; inset-inline-end: 1rem; z-index: 70;
  width: min(280px, calc(100vw - 2rem));
  padding: .7rem; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform: translateY(140%); opacity: 0;
  transition: transform .45s var(--ease-out), opacity .3s var(--ease-out);
}
.ad-toast.show { transform: none; opacity: 1; }
.ad-toast[hidden] { display: none; }
.ad-toast-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .45rem; }
.ad-toast-head span { font-size: .66rem; font-weight: 700; letter-spacing: .16em; color: var(--ink-3); }

/* =============================================================
   8. Content sections
   ============================================================= */
.section { padding-block: clamp(2rem, 5vw, 3.25rem); }
.section-head { max-width: 60ch; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.section-head h2 { font-size: clamp(1.35rem, 3vw, 1.95rem); }
.section-head p { margin-top: .5rem; color: var(--ink-2); }
.eyebrow {
  display: inline-block; margin-bottom: .5rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}

.steps { display: grid; gap: 1rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  padding: 1.2rem; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
}
.step-n {
  width: 34px; height: 34px; border-radius: 10px; margin-bottom: .8rem;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: .95rem;
}
.step h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.step p { font-size: .89rem; color: var(--ink-2); }

.uses { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .uses { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .uses { grid-template-columns: repeat(3, 1fr); } }
.use {
  padding: 1.1rem; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.use:hover { border-color: var(--line-2); transform: translateY(-2px); }
.use .ico { font-size: 1.5rem; line-height: 1; margin-bottom: .55rem; }
.use h3 { font-size: .98rem; margin-bottom: .3rem; }
.use p { font-size: .865rem; color: var(--ink-2); }

.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.3rem, 2.8vw, 1.8rem); margin-bottom: .8rem; }
.prose h3 { font-size: 1.06rem; margin: 1.6rem 0 .45rem; }
.prose p { margin-bottom: .85rem; color: var(--ink-2); }
.prose ul { margin: 0 0 .9rem; padding-inline-start: 1.1rem; color: var(--ink-2); }
.prose li { margin-bottom: .3rem; }
.prose strong { color: var(--ink); font-weight: 600; }

.faq { max-width: 76ch; display: grid; gap: .5rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.faq summary {
  padding: .95rem 1.1rem; cursor: pointer; list-style: none;
  font-weight: 600; font-size: .96rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; font-size: 1.25rem; font-weight: 400; color: var(--ink-3);
  transition: transform .22s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 1.1rem 1.05rem; color: var(--ink-2); font-size: .92rem; }
.faq .answer p + p { margin-top: .6rem; }

/* =============================================================
   9. Footer
   ============================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem 2.5rem; margin-top: 1rem;
  font-size: .85rem; color: var(--ink-3);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   10. No-JS
   ============================================================= */
.nojs-note {
  display: none; padding: 1rem; text-align: center;
  background: var(--warn-sf); color: var(--warn); border-radius: var(--r); font-size: .9rem;
}
html.no-js .nojs-note { display: block; }
html.no-js .tool-grid { display: none; }

/* =============================================================
   11. RTL
   ============================================================= */
[dir="rtl"] .divider::after { order: 0; }
[dir="rtl"] .range-val { text-align: start; }

/* =============================================================
   12. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spinner { animation-duration: 2.4s; }
  .ad-toast { transition-duration: .01ms; }
}
