/* ============================================================
   Tanda Tangan PDF — PREMIUM dark-purple SaaS design (Visuo/Mufi)
   "WAO on open": gradient orbs, glassmorphism, 3D tilt, signature
   pad with smooth drawing, draggable placement overlay.
   Zero frameworks, zero remote assets.
   Fonts: Plus Jakarta Sans + Caveat (OFL), self-hosted.
   ============================================================ */

/* ---------- self-hosted fonts ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Caveat";
  src: url("assets/fonts/caveat-latin.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Caveat", "Segoe Script", "Brush Script MT", "Apple Chancery", cursive;

  --bg-950: #12101d;
  --bg-900: #181527;
  --bg-800: #1f1b33;
  --violet-500: #8b5cf6;
  --violet-400: #a78bfa;
  --violet-700: #6d28d9;
  --orange-400: #fb923c;
  --orange-500: #f97316;

  --ink: #f4f2fb;
  --muted: #a9a3c7;
  --faint: #7c76a0;
  --line: rgba(139, 92, 246, 0.22);
  --card: rgba(31, 27, 51, 0.72);
  --card-solid: #1f1b33;
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.12);
  --success: #34d399;
  --success-bg: rgba(52, 211, 153, 0.12);
  --warning: #fbbf24;
  --info: #60a5fa;

  --radius: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --focus-ring: 0 0 0 3px rgba(139, 92, 246, 0.45);
  --shadow-lift: 0 18px 50px -12px rgba(139, 92, 246, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.65;
  background:
    radial-gradient(1100px 480px at 85% -80px, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(900px 420px at -10% 20px, rgba(249, 115, 22, 0.10), transparent 55%),
    radial-gradient(700px 500px at 50% 110%, rgba(109, 40, 217, 0.12), transparent 60%),
    var(--bg-950);
  min-height: 100vh;
}
.container { max-width: 920px; margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  background: var(--violet-500); color: #fff;
  padding: 10px 16px; border-radius: 10px; text-decoration: none;
  transition: top 0.15s ease; font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 16, 29, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand {
  font-size: 1.35rem; font-weight: 800; margin: 0; letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--violet-400), var(--orange-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline { margin: 0; color: var(--muted); font-size: 0.85rem; }
.header-badge {
  margin-left: auto; font-size: 0.75rem; font-weight: 700;
  color: var(--orange-400); border: 1px solid rgba(251, 146, 60, 0.4);
  background: rgba(251, 146, 60, 0.1);
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}

/* ---------- hero ---------- */
.hero { text-align: center; padding: 44px 0 12px; position: relative; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: -1; }
.hero-orb-a {
  width: 340px; height: 340px; left: -90px; top: -40px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
  animation: orb-drift 14s ease-in-out infinite alternate;
}
.hero-orb-b {
  width: 280px; height: 280px; right: -70px; top: 30px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.22), transparent 70%);
  animation: orb-drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes orb-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(36px, 28px) scale(1.12); } }
.hero h1 {
  font-size: 2rem; margin: 0 0 10px; letter-spacing: -0.03em; line-height: 1.15;
  animation: float-in 0.7s var(--ease-out) both;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--violet-400) 10%, var(--orange-400) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--muted); font-size: 1.05rem; margin: 0 auto; max-width: 36rem; animation: float-in 0.7s var(--ease-out) 0.08s both; }
.lede-honest { font-size: 0.9rem; color: var(--faint); margin: 10px auto 0; max-width: 36rem; animation: float-in 0.7s var(--ease-out) 0.16s both; }
.hero-stats { display: flex; justify-content: center; gap: 28px; margin-top: 20px; animation: float-in 0.7s var(--ease-out) 0.24s both; }
.hero-stat { text-align: center; }
.hero-stat b { display: block; font-size: 1.3rem; letter-spacing: -0.02em; }
.hero-stat span { font-size: 0.78rem; color: var(--faint); }
@keyframes float-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- tool card ---------- */
.tool-stage { perspective: 1400px; }
.tool-card {
  background: linear-gradient(140deg, rgba(255,255,255,0.06), transparent 32%), var(--card);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 20px; padding: 22px; margin: 24px 0;
  box-shadow: 0 24px 70px -20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: card-in 0.8s var(--ease-out) 0.1s both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(26px) rotateX(6deg); } to { opacity: 1; transform: none; } }

/* ---------- dropzone ---------- */
.dropzone {
  border: 2px dashed rgba(139, 92, 246, 0.45); border-radius: var(--radius);
  background: rgba(139, 92, 246, 0.06); text-align: center;
  padding: 36px 16px; cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s var(--ease-out);
  min-height: 48px;
}
.dropzone:hover { border-color: var(--violet-400); background: rgba(139, 92, 246, 0.12); transform: translateY(-2px); }
.dropzone:focus { outline: none; box-shadow: var(--focus-ring); border-color: var(--violet-400); }
.dropzone.dragover { border-color: var(--orange-400); background: rgba(249, 115, 22, 0.10); border-style: solid; transform: scale(1.01); }
.dropzone-icon { color: var(--violet-400); margin-bottom: 10px; animation: bounce-icon 2.6s ease-in-out infinite; }
@keyframes bounce-icon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.dropzone-title { margin: 0 0 4px; font-size: 1.12rem; font-weight: 700; }
.dropzone-sub { margin: 0 0 8px; color: var(--muted); }
.dropzone-cta { color: var(--orange-400); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.dropzone-limits { margin: 0; font-size: 0.82rem; color: var(--faint); }

.dropzone-inner { display: flex; flex-direction: column; align-items: center; }

/* ---------- file chip ---------- */
.file-chip {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; background: rgba(139, 92, 246, 0.07); margin-top: 16px;
  animation: slide-in 0.3s var(--ease-out);
}
@keyframes slide-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.file-chip-icon { color: var(--violet-400); flex: 0 0 auto; }
.file-chip-info { flex: 1 1 auto; min-width: 0; }
.file-chip-name { font-weight: 700; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; }
.file-chip-meta { font-size: 0.82rem; color: var(--muted); margin: 2px 0 0; }

/* ---------- signature studio ---------- */
.sig-section { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: rgba(139, 92, 246, 0.05); }
.sig-section h3 { margin: 0 0 12px; font-size: 1.05rem; }
.sig-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.sig-tab {
  flex: 1; font: inherit; font-weight: 700; font-size: 0.95rem; color: var(--muted);
  background: var(--bg-800); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; cursor: pointer; min-height: 52px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.sig-tab:hover { color: var(--ink); border-color: var(--faint); }
.sig-tab.is-active {
  color: #fff; border-color: var(--violet-500);
  background: linear-gradient(135deg, var(--violet-500), var(--violet-700));
  box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.6);
}
.sig-tab:focus { outline: none; box-shadow: var(--focus-ring); }
.sig-panel { animation: slide-in 0.25s var(--ease-out); }
.sig-hint { margin: 0 0 12px; font-size: 0.88rem; color: var(--muted); }

.sig-pad-wrap {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background:
    linear-gradient(rgba(139,92,246,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.06) 1px, transparent 1px),
    #f7f5ff;
  background-size: 28px 28px;
  touch-action: none;
}
#sig-pad { display: block; width: 100%; height: auto; cursor: crosshair; touch-action: none; }
.sig-pad-actions { margin-top: 10px; display: flex; gap: 8px; }

.field-label { display: block; font-weight: 700; font-size: 0.9rem; margin: 12px 0 6px; }
.text-input, .select-input {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--bg-950); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; min-height: 52px;
}
.text-input::placeholder { color: var(--faint); }
.text-input:focus, .select-input:focus { outline: none; border-color: var(--violet-400); box-shadow: var(--focus-ring); }
.sig-preview-wrap {
  margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #f7f5ff;
}
.sig-preview-wrap canvas { display: block; width: 100%; height: auto; }

.sig-save-row { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sig-saved-note { margin: 0; color: var(--success); font-weight: 700; font-size: 0.92rem; }

/* ---------- thumbnails ---------- */
.place-section { margin-top: 22px; }
.place-section h3 { margin: 0 0 4px; font-size: 1.05rem; }
.thumb-hint { margin: 0 0 12px; font-size: 0.87rem; color: var(--muted); }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; margin-top: 12px; }
.thumb {
  position: relative; border: 2px solid transparent; border-radius: 12px;
  background: var(--bg-800); padding: 8px; cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s var(--ease-out), box-shadow 0.15s ease;
  animation: thumb-in 0.4s var(--ease-out) both;
}
@keyframes thumb-in { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
.thumb:hover { transform: translateY(-3px); }
.thumb:focus { outline: none; box-shadow: var(--focus-ring); }
.thumb.selected {
  border-color: var(--violet-400);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25), 0 10px 26px -10px rgba(139, 92, 246, 0.5);
}
.thumb-canvas-wrap {
  width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 8px;
  background: #0d0b16; display: flex; align-items: center; justify-content: center;
}
.thumb canvas { max-width: 100%; max-height: 100%; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }
.thumb-num {
  position: absolute; top: 4px; left: 4px; z-index: 2;
  font-size: 0.7rem; font-weight: 800; color: #fff;
  background: rgba(18, 16, 29, 0.85); border: 1px solid var(--line);
  border-radius: 999px; padding: 1px 8px;
}
.thumb-check {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--violet-500); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800;
  opacity: 0; transform: scale(0.5); transition: opacity 0.15s, transform 0.15s var(--ease-out);
}
.thumb.selected .thumb-check { opacity: 1; transform: scale(1); }
.thumb-signed-dot {
  position: absolute; top: 4px; right: 4px; z-index: 2;
  font-size: 0.68rem; font-weight: 800; color: #06281c;
  background: linear-gradient(135deg, var(--success), #6ee7b7);
  border-radius: 999px; padding: 1px 8px;
}
.thumb-cap { font-size: 0.72rem; color: var(--faint); text-align: center; margin: 6px 0 0; }

/* ---------- placement ---------- */
.placement-wrap { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: rgba(18, 16, 29, 0.5); }
.placement-canvas-wrap {
  position: relative; border-radius: 12px; overflow: hidden;
  background: #0d0b16; display: flex; justify-content: center;
  border: 1px solid var(--line);
  touch-action: none;
}
#placement-canvas { display: block; max-width: 100%; height: auto; }
.sig-overlay {
  position: absolute; border: 2px dashed var(--orange-400); border-radius: 6px;
  cursor: move; touch-action: none; z-index: 3;
  background: rgba(251, 146, 60, 0.08);
  transition: box-shadow 0.15s;
}
.sig-overlay:hover, .sig-overlay.dragging { box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.25); }
.sig-overlay img { display: block; width: 100%; height: 100%; pointer-events: none; }
.sig-overlay::after {
  content: "✥"; position: absolute; right: -12px; bottom: -12px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--orange-400); color: #1a1206;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800;
}
.placement-controls { margin-top: 14px; }
.placement-controls output { color: var(--orange-400); font-weight: 800; }
input[type="range"] {
  width: 100%; accent-color: var(--violet-500); min-height: 44px; cursor: pointer;
}
.placement-btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.placement-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.placement-list li {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px;
  font-size: 0.88rem; color: var(--muted); background: rgba(139, 92, 246, 0.06);
}
.placement-list li b { color: var(--ink); }
.placement-list .remove-placement {
  margin-left: auto; background: none; border: none; color: var(--danger);
  font: inherit; font-weight: 700; cursor: pointer; padding: 6px 10px; border-radius: 8px;
}
.placement-list .remove-placement:hover { background: var(--danger-bg); }
.placement-list .remove-placement:focus { outline: none; box-shadow: var(--focus-ring); }

/* ---------- notices ---------- */
.notice-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.notice-list:empty { display: none; }
.notice { border-radius: 10px; padding: 10px 14px; font-size: 0.92rem; margin-top: 12px; border: 1px solid transparent; }
.notice-error { background: var(--danger-bg); border-color: rgba(248, 113, 113, 0.35); color: #fca5a5; }
.notice-info { background: rgba(96, 165, 250, 0.1); border-color: rgba(96, 165, 250, 0.3); color: #bfdbfe; }
.notice-warn { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.3); color: #fde68a; }
.notice[hidden] { display: none; }

/* ---------- buttons ---------- */
.btn {
  font: inherit; font-weight: 700; border-radius: 12px; cursor: pointer;
  padding: 12px 20px; border: 1px solid transparent; min-height: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s, background 0.15s;
}
.btn:focus { outline: none; box-shadow: var(--focus-ring); }
.btn-primary {
  background: linear-gradient(135deg, var(--violet-500), var(--violet-700));
  color: #fff; box-shadow: 0 10px 30px -8px rgba(139, 92, 246, 0.55);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 38px -8px rgba(139, 92, 246, 0.65); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-secondary { background: var(--bg-800); border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { border-color: var(--faint); }
.btn-ghost { background: transparent; color: var(--muted); border: none; padding: 8px 12px; min-height: 40px; }
.btn-ghost:hover:not(:disabled) { color: var(--danger); background: var(--danger-bg); }
.btn-large { font-size: 1.05rem; padding: 15px 28px; width: 100%; }
.action-row { display: flex; gap: 12px; margin-top: 22px; }
.action-row .btn-primary { flex: 1; }

/* ---------- progress ---------- */
.progress { margin-top: 18px; }
.progress-text { margin: 0 0 8px; font-size: 0.95rem; color: var(--muted); }
.progress-track { height: 12px; background: var(--bg-950); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--violet-500), var(--orange-400));
  background-size: 200% 100%;
  border-radius: 999px; transition: width 0.2s ease;
  animation: progress-shimmer 1.6s linear infinite;
}
@keyframes progress-shimmer { to { background-position: -200% 0; } }

/* ---------- result ---------- */
.result {
  margin-top: 22px; border: 1px solid rgba(52, 211, 153, 0.35);
  background: var(--success-bg); border-radius: var(--radius); padding: 22px;
  animation: card-slide-in 0.45s var(--ease-out);
}
@keyframes card-slide-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.result h3 { margin: 0 0 12px; color: var(--success); }
.result-meta { margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
.result-meta > div { display: flex; gap: 8px; font-size: 0.95rem; }
.result-meta dt { font-weight: 700; min-width: 170px; color: var(--muted); }
.result-meta dd { margin: 0; overflow-wrap: anywhere; }
.result-actions { display: flex; flex-direction: column; gap: 10px; }
.result-notes { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; color: var(--muted); }
.result-notes li { display: flex; gap: 8px; }
.result-notes li::before { content: "•"; flex: 0 0 auto; color: var(--success); }

/* ---------- content sections ---------- */
.privacy-note {
  background: linear-gradient(140deg, rgba(139, 92, 246, 0.14), rgba(139, 92, 246, 0.04));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin: 24px 0;
}
.privacy-note h2 { margin: 0 0 8px; font-size: 1.15rem; color: var(--violet-400); }
.privacy-note p { margin: 0 0 8px; color: var(--muted); }
.privacy-note strong { color: var(--ink); }
.privacy-note details summary { cursor: pointer; font-weight: 700; color: var(--violet-400); }
.privacy-note details summary:focus { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
.privacy-note details p { margin-top: 8px; font-size: 0.92rem; }

.content-section { margin: 30px 0; }
.content-section h2 { font-size: 1.32rem; margin: 0 0 12px; letter-spacing: -0.02em; }
.content-section > p { color: var(--muted); }
.content-section > p strong { color: var(--ink); }
.steps { margin: 0; padding-left: 1.4rem; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.steps strong { color: var(--ink); }
.content-section details {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; margin-bottom: 8px; background: rgba(31, 27, 51, 0.5);
  transition: border-color 0.15s;
}
.content-section details[open] { border-color: rgba(139, 92, 246, 0.45); }
.content-section summary { cursor: pointer; font-weight: 700; }
.content-section summary:focus { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
.content-section details p { margin: 8px 0 0; color: var(--muted); font-size: 0.95rem; }

.why-grid { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.why-item {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; background: rgba(31, 27, 51, 0.5);
  transition: transform 0.2s var(--ease-out), border-color 0.2s;
}
.why-item:hover { transform: translateY(-3px); border-color: rgba(139, 92, 246, 0.5); }
.why-item h3 { font-size: 1.02rem; margin: 0 0 6px; color: var(--violet-400); }
.why-item p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.compare-table-wrap { overflow-x: auto; margin-top: 14px; border-radius: 12px; border: 1px solid var(--line); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
.compare-table th, .compare-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table th { background: rgba(139, 92, 246, 0.1); font-weight: 700; }
.compare-table td { color: var(--muted); }
.compare-table td:first-child { color: var(--ink); font-weight: 600; }
.compare-table .yes { color: var(--success); font-weight: 700; }
.compare-table .no { color: var(--faint); }
.table-note { font-size: 0.82rem; color: var(--faint); margin-top: 8px; }

.limits-list { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.limits-list strong { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 36px; padding: 22px 0 36px; color: var(--faint); font-size: 0.88rem; }
.site-footer p { margin: 4px 0; }
.footer-tech { font-size: 0.8rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 0.85rem; }
.footer-nav a:hover { color: var(--violet-400); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .hero h1 { font-size: 2.6rem; }
  .tool-card { padding: 30px; }
  .btn-large { width: auto; }
  .action-row .btn-primary { flex: 0 1 auto; min-width: 280px; }
  .result-actions { flex-direction: row; }
  .result-actions .btn-primary { flex: 1; }
  .why-grid { flex-direction: row; }
  .why-item { flex: 1; }
  .thumb-grid { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================================
   3D premium enhancements — Visuo/Mufi reference system
   (tilt target for tilt-snippet.js, deep-glow card, overflow-x guard)
   Added 2026-10-12 premium redesign. Class names / IDs untouched.
   ============================================================ */
.tilt-3d { transform-style: preserve-3d; will-change: transform; transition: transform 0.18s ease-out; }
.hero { perspective: 1200px; }
.orb { transform: translateZ(0); }
.hero-orb { transform: translateZ(0); }
.tool-card {
  box-shadow: 0 24px 70px -18px rgba(0, 0, 0, 0.65),
              0 0 0 1px rgba(139, 92, 246, 0.12),
              0 0 44px -12px rgba(139, 92, 246, 0.28);
}
a.brand, a.brand:visited { text-decoration: none; color: inherit; cursor: pointer; }
body { overflow-x: hidden; }
html, body { overflow-x: clip; }
