/* ==============================================================================
   WiiM Agency - UTM Generator Module (Bureau 1969 Fidelity + WiiM Design System)
   Typography: Unbounded (Display) + Onest (Interface) + JetBrains Mono (Code/Mono)
   Colors: High Contrast Slate (#111418) on Soft Clean Surface (#F7F8FA / #FFFFFF)
   Accents: WiiM Signature Emerald (#009473)
   ============================================================================== */

:root {
  --bg-base: #F8F9F8;
  --bg-surface: #FFFFFF;
  --bg-overlay: #FFFFFF;
  --bg-highlight: #F0F4F2;
  --bg-surface-hover: #F3F7F5;
  
  --text-primary: #14201C;
  --text-secondary: #5C6360;
  --text-muted: #939597;
  --text-dim: #A1A8A5;
  
  --utm-accent: #009473;
  --bg-dark: #09090B;
  --border-strong: #939597;
  --utm-accent-hover: #007a5e;
  --accent-soft: #E4F1EC;
  --accent-border: #99E0CE;
  
  --border: #D8DCD9;
  --border-light: #E8ECE9;
  --border-medium: #BCC2BD;
  --border-focus: #009473;
  
  --success: #009473;
  --warning: #D97706;
  --danger: #DC2626;
  
  --font-display: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --shadow-sm: 0 2px 6px rgba(20, 32, 28, 0.04);
  --shadow-md: 0 8px 24px rgba(20, 32, 28, 0.08);
  --shadow-lg: 0 16px 36px rgba(20, 32, 28, 0.12);
  --shadow-glow: 0 4px 18px rgba(0, 148, 115, 0.28);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --transition: 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1160px;
}

*, *:before, *:after {
  box-sizing: border-box;
}

/* Global Layout Safeguard & Base Brand Typography */
html, body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

button, input, select, textarea, optgroup {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

p, span, a, label, li, table, td, th {
  font-family: inherit;
}

#root {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Base Wrapper */
.utm-page-wrap {
  flex: 1 0 auto;
  background-color: var(--bg-base);
  padding: 36px 20px 40px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
  .utm-page-wrap {
    padding: 20px 12px 48px;
  }
}

.utm-page-wrap * {
  box-sizing: border-box;
}

/* Hero Header */
.generator-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 24px;
  padding: 0 12px;
}

.generator-h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.generator-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 auto;
}

/* Tool Shell (Outer Card) */
.tool-shell {
  max-width: var(--maxw);
  margin: 0 auto 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

@media (max-width: 768px) {
  .tool-shell {
    padding: 14px;
    border-radius: 16px;
    margin-bottom: 32px;
  }
}

/* Toolbar (Tabs & Action Buttons) */
.builder-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 20px;
  gap: 12px;
}

@media (max-width: 640px) {
  .builder-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .toolbar-tabs {
    width: 100%;
  }
  .tab-btn {
    flex: 1;
    justify-content: center;
  }
  .toolbar-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

.toolbar-tabs {
  display: flex;
  align-items: center;
  background: var(--bg-highlight);
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #E5E7EB;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  transition: var(--transition);
}

.tab-btn.active .tab-badge {
  background: var(--accent-soft);
  color: var(--utm-accent);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-ghost:hover {
  background: var(--bg-highlight);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

/* Builder Layout: 2 Columns (Main Form + Sticky Result Dock) */
.builder-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

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

.builder-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* Step Sections */
.section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition);
}

.section:focus-within {
  border-color: #cbd5e1;
}

/* Step Header */
.step-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.step-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--utm-accent);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-title {
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.step-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
  transition: var(--transition);
}

.step-action-btn:hover {
  background: var(--bg-highlight);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

/* Step 1: URL Input & Project Chips */
.url-bar {
  border: 2px solid var(--accent-border);
  box-shadow: 0 0 0 4px rgba(0, 148, 115, 0.05);
}

.url-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.url-icon {
  position: absolute;
  left: 14px;
  color: var(--utm-accent);
  pointer-events: none;
  font-size: 17px;
  display: flex;
  align-items: center;
}

.url-input {
  width: 100%;
  height: 44px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 0 16px 0 44px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.url-input:focus {
  border-color: var(--utm-accent);
  box-shadow: 0 0 0 3px rgba(0, 148, 115, 0.15);
}

.url-input::placeholder {
  color: var(--text-dim);
}

.project-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
}

.project-chips-label {
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 2px;
}

.project-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.project-chip:hover {
  background: var(--bg-highlight);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.project-chip.active {
  background: var(--accent-soft);
  border-color: var(--utm-accent);
  color: var(--utm-accent);
  font-weight: 600;
}

/* Step 2: Traffic Sources Strip */
.source-icons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.source-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.source-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.source-icon:hover {
  border-color: #CBD5E1;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.source-icon.active {
  border-color: var(--utm-accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--utm-accent);
}

.source-icon-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--utm-accent);
  box-shadow: 0 0 0 2px var(--bg-surface);
}

.source-active-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  padding: 6px 12px;
  background: var(--bg-highlight);
  border-radius: 7px;
}

.source-active-label strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Step 3: Parameters Form */
.params-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 768px) {
  .params-two {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.params-col {
  display: flex;
  flex-direction: column;
}

.params-col-label {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 18px;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.input-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.input-group.is-required label {
  color: var(--text-primary);
  font-weight: 700;
}

.input-group label .req {
  color: var(--danger);
  font-weight: 700;
}

.field-gloss {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 2px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.field-input {
  width: 100%;
  height: 42px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 0 42px 0 12px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.field-input:hover {
  border-color: #94A3B8;
}

.field-input:focus {
  border-color: var(--utm-accent);
  box-shadow: 0 0 0 3px rgba(0, 148, 115, 0.15);
}

.field-input::placeholder {
  color: var(--text-dim);
  font-size: 13px;
}

/* Token Helper Button inside input */
.token-helper-btn {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: var(--bg-highlight);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--utm-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  user-select: none;
  z-index: 2;
}

.token-helper-btn:hover {
  background: var(--accent-soft);
  border-color: var(--utm-accent);
  color: var(--utm-accent-hover);
}

/* Example Chips below input */
.example-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.example-chip {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-highlight);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 7px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.example-chip:hover {
  border-color: var(--utm-accent);
  color: var(--utm-accent);
  background: #FFFFFF;
}

.example-chip.active {
  background: var(--accent-soft);
  color: var(--utm-accent);
  border-color: var(--accent-border);
  font-weight: 600;
}

/* Token Dropdown Popover */
.utm-token-popover {
  position: absolute;
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 1000;
  width: 290px;
  max-height: 280px;
  overflow-y: auto;
  display: none;
}

.utm-token-popover.is-open {
  display: block;
}

.utm-token-popover-title {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 4px 8px 6px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 4px;
}

.utm-token-popover-item {
  display: flex;
  flex-direction: column;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.utm-token-popover-item:hover {
  background: var(--bg-highlight);
}

.utm-token-item-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #1D4ED8;
}

.utm-token-item-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Custom Parameters Row & Button */
.custom-param-row {
  display: grid;
  grid-template-columns: 1fr 1fr 34px;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.custom-param-input {
  height: 38px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: 7px;
  padding: 0 10px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--text-primary);
  outline: none;
}

.custom-param-input:focus {
  border-color: var(--utm-accent);
}

.custom-param-del {
  width: 34px;
  height: 38px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--danger);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.custom-param-del:hover {
  background: #FEE2E2;
  border-color: #FCA5A5;
}

.add-custom-btn {
  width: 100%;
  height: 38px;
  border: 1.5px dashed var(--border-medium);
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
  margin-top: 6px;
}

.add-custom-btn:hover {
  border-color: var(--utm-accent);
  color: var(--utm-accent);
  background: var(--accent-soft);
}

/* Auto-formatting Options Footer */
.norm-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.norm-options-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.opt-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.opt-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--utm-accent);
  cursor: pointer;
}

/* ==============================================================================
   RIGHT COLUMN: STICKY RESULT DOCK
   ============================================================================== */
.result-dock {
  position: sticky;
  top: 90px;
  align-self: start;
}

.result-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FAFBFF 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.result-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--text-muted);
  transition: background 0.3s ease;
}

.result-card.is-ready::before {
  background: linear-gradient(90deg, var(--utm-accent) 0%, #10B981 100%);
}

.result-card.is-ready {
  border-color: rgba(0, 148, 115, 0.35);
  box-shadow: 0 8px 28px rgba(0, 148, 115, 0.12);
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 0;
}

.result-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94A3B8;
  display: inline-block;
  flex-shrink: 0;
}

.result-card.is-ready .status-dot {
  background: var(--utm-accent);
  box-shadow: 0 0 8px rgba(0, 148, 115, 0.5);
}

.result-card.is-ready .result-status {
  color: var(--utm-accent);
}

/* Final URL Textarea */
.final-url-wrapper {
  position: relative;
  width: 100%;
  padding: 14px 18px 0;
}

.final-url-textarea {
  width: 100%;
  min-height: 100px;
  background: var(--bg-base);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 38px 12px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  resize: vertical;
  outline: none;
  word-break: break-all;
  transition: var(--transition);
}

.result-card.is-ready .final-url-textarea {
  background: #FFFFFF;
  border-color: rgba(0, 148, 115, 0.4);
}

.url-copy-inline {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 26px;
  height: 26px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.url-copy-inline:hover {
  border-color: var(--utm-accent);
  color: var(--utm-accent);
}

/* Action Buttons */
.result-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px 16px;
  flex-wrap: wrap;
}

.btn-accent {
  flex: 1 1 100%;
  height: 44px;
  background: var(--utm-accent);
  color: #ffffff;
  border: none;
  border-radius: 9px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
}

.btn-accent:hover {
  background: var(--utm-accent-hover);
  transform: translateY(-1px);
}

.btn-accent.is-copied {
  background: var(--success);
}

.btn-secondary {
  flex: 1 1 auto;
  height: 38px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--bg-highlight);
  border-color: var(--border-medium);
}

.btn-icon-only {
  flex: 0 0 38px;
  width: 38px;
  padding: 0;
}

/* Keyboard Hints */
.result-hint {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 18px 14px;
  font-size: 11.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

.result-hint span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.result-hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--bg-highlight);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-secondary);
}

/* Result Note */
.result-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
  padding: 0 18px 14px;
  line-height: 1.4;
}

.result-note svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #2563EB;
}

/* QR Code Display Card */
.qr-dock-box {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  margin: 0 18px 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.qr-dock-box.is-open {
  display: flex;
}

/* ==============================================================================
   HISTORY VIEW TAB
   ============================================================================== */
.utm-history-view {
  display: none;
}

.utm-history-view.active {
  display: block;
}

.utm-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
}

.utm-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.utm-history-table th {
  background: var(--bg-highlight);
  padding: 12px 16px;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.utm-history-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  vertical-align: middle;
}

.utm-history-table tr:hover td {
  background: var(--bg-surface-hover);
}

.utm-history-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--utm-accent);
  max-width: 380px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.utm-history-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
}

/* ==============================================================================
   DOCUMENTATION & CHEATSHEET SECTION (Tokens Reference)
   ============================================================================== */
.content-section {
  max-width: var(--maxw);
  margin: 0 auto;
}

.content-h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.lead-paragraph {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.token-tables {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.token-table-block {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 16px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.token-table-block:hover {
  border-color: #CBD5E1;
}

.token-table-block[open] {
  border-color: #94A3B8;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
}

.token-table-block summary {
  cursor: pointer;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  user-select: none;
  flex-wrap: nowrap;
}

.token-table-block summary::-webkit-details-marker,
.token-table-block summary::marker {
  display: none;
}

.tt-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.tt-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tt-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.tt-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.tt-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
}

.tt-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.tt-brace {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  background: #F1F5F9;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: all 0.15s ease;
}

.token-table-block:hover .tt-brace {
  background: #E2E8F0;
  border-color: #CBD5E1;
  color: #0F172A;
}

.tt-chevron {
  width: 16px;
  height: 16px;
  color: #94A3B8;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
}

.token-table-block:hover .tt-chevron {
  color: var(--text-primary);
}

.token-table-block[open] .tt-chevron {
  transform: rotate(180deg);
  color: var(--utm-accent);
}

@media (max-width: 580px) {
  .token-table-block {
    padding: 0 14px;
  }
  .token-table-block summary {
    padding: 12px 0;
    gap: 8px;
  }
  .tt-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }
  .tt-title {
    font-size: 13.5px;
  }
  .tt-sub {
    font-size: 11px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tt-meta {
    gap: 8px;
  }
  .tt-brace {
    font-size: 10px;
    padding: 2px 6px;
  }
  .tt-chevron {
    width: 14px;
    height: 14px;
  }
}

/* Guides Banner Section (Replaces content-more raw text) */
.guides-banner {
  margin: 44px auto 24px;
  max-width: 100%;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.04);
}

.guides-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guides-banner-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.guides-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--utm-accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 3px 9px;
  border-radius: 999px;
}

.guides-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.guides-banner-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.guide-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  gap: 12px;
}

.guide-chip:hover {
  border-color: var(--utm-accent);
  background: #F0FDF4;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(0, 148, 115, 0.1);
}

.guide-chip-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.guide-chip-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.guide-chip:hover .guide-chip-title {
  color: var(--utm-accent);
}

.guide-chip-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guide-chip svg {
  color: #94A3B8;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.guide-chip:hover svg {
  transform: translateX(3px);
  color: var(--utm-accent);
}

@media (max-width: 640px) {
  .guides-banner {
    margin: 28px 0 16px;
    padding: 16px 14px;
    border-radius: 12px;
  }
  .guides-banner-links {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .guide-chip {
    padding: 10px 12px;
  }
}

.tt-body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tt-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.token-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.token-table th {
  background: var(--bg-highlight);
  padding: 10px 14px;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.token-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.token-code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: #1D4ED8;
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  padding: 2px 7px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-block;
  transition: var(--transition);
}

.token-code:hover {
  background: #DBEAFE;
  border-color: #93C5FD;
}

.param-tag {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--utm-accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 2px 7px;
  border-radius: 5px;
}

/* Toast Notifications */
.utm-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111418;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.22s ease;
  pointer-events: none;
}

.utm-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================================================================
   ARTICLE & KNOWLEDGE HUB STYLES (Multi-page SEO Service)
   ============================================================================== */

/* Service Secondary Nav Bar */
.service-subnav-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  margin-bottom: 28px;
}

.service-subnav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.service-subnav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.subnav-link:hover {
  color: var(--utm-accent);
  background: var(--bg-highlight);
}

.subnav-link.is-active {
  color: var(--utm-accent);
  background: var(--accent-soft);
  font-weight: 700;
}

.subnav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--utm-accent);
  color: #FFFFFF !important;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
}

.subnav-cta-btn:hover {
  background: var(--utm-accent-hover);
  transform: translateY(-1px);
}

/* Article Container */
.article-wrap {
  max-width: 820px;
  margin: 0 auto 36px;
  padding: 0 16px;
}

.article {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 40px;
}

@media (max-width: 768px) {
  .article {
    padding: 24px 18px;
    border-radius: 16px;
  }
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--utm-accent);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.bc-current {
  color: var(--text-primary);
  font-weight: 600;
}

/* Article Typography */
.article-h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Author Box */
.article-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 28px;
}

.article-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  background: #FFFFFF;
  border: 1.5px solid rgba(0, 148, 115, 0.3);
  padding: 6px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 148, 115, 0.12);
}

.article-author-info {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.article-author-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.article-author-role {
  font-size: 12.5px;
  color: var(--text-muted);
}

.article-author-role a {
  color: var(--utm-accent);
  text-decoration: none;
  font-weight: 600;
}

/* Article Body Content */
.article-intro {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 28px;
}

.article-section {
  margin-bottom: 36px;
}

.article-section h2, .article h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 32px 0 14px;
  line-height: 1.3;
}

.article-section h3, .article h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 22px 0 10px;
}

.article-section p, .article p {
  font-size: 15px;
  line-height: 1.68;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.article-section ul, .article ul, .article-section ol, .article ol {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 18px;
  padding-left: 24px;
}

.article-section li, .article li {
  margin-bottom: 8px;
}

.article-section strong, .article strong {
  color: var(--text-primary);
}

.article-section a, .article a:not(.btn):not(.subnav-link):not(.subnav-cta-btn) {
  color: var(--utm-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-section a:hover, .article a:hover {
  color: var(--utm-accent-hover);
}

/* Callout Box */
.callout-box {
  padding: 18px 22px;
  border-radius: 12px;
  margin: 24px 0;
  font-size: 14.5px;
  line-height: 1.6;
}

.callout-box.info {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: #065F46;
}

.callout-box.warn {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  color: #92400E;
}

.callout-box.tip {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
}

/* Code Snippets */
.code-box {
  background: #0F172A;
  color: #F8FAFC;
  border-radius: 10px;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  margin: 18px 0;
}

.code-box code {
  color: inherit;
  font-family: inherit;
}

/* Article Tables */
.article-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #FFFFFF;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.article-table th {
  background: var(--bg-highlight);
  padding: 12px 14px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: top;
}

.article-table tr:last-child td {
  border-bottom: none;
}

/* Article CTA / Lead Magnet */
.article-cta {
  background: linear-gradient(135deg, #FFFFFF 0%, #E6F7F2 100%);
  border: 1.5px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  margin-top: 48px;
  box-shadow: 0 8px 24px rgba(0, 148, 115, 0.08);
}

.article-cta h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.article-cta p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.article-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Mini Platform Hub Cards Grid */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0 32px;
}

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

.platform-hub-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none !important;
  transition: var(--transition);
}

.platform-hub-card:hover {
  border-color: var(--utm-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.platform-hub-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.platform-hub-card-head svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.platform-hub-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.platform-hub-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}


/* ==============================================================================
   SERVICE HEADER (.site-header)
   ============================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.site-header-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition);
}

.logo-area:hover .brand-logo {
  transform: rotate(-6deg) scale(1.06);
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand-divider {
  color: var(--border-medium, #D1D5DB);
  font-weight: 300;
  margin: 0 4px;
}

.brand-name {
  color: var(--utm-accent);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}

.site-nav a:hover {
  color: var(--utm-accent);
}

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--utm-accent);
  color: #FFFFFF !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.2;
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
}

.site-nav .nav-cta:hover {
  background: var(--utm-accent-hover);
  transform: translateY(-1px);
}

/* ==============================================================================
   MAIN SERVICE LANDING PAGE (.page.landing)
   ============================================================================== */
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 32px;
}

.page.landing {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 16px;
  padding-bottom: 8px;
}

@media (max-width: 768px) {
  .page {
    padding: 0 16px 24px;
  }
  .page.landing {
    gap: 28px;
    padding-top: 8px;
    padding-bottom: 4px;
  }
}

.page.landing .content-section {
  scroll-margin-top: 80px;
  text-align: center;
}

.page.landing .content-section .content-h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.page.landing .content-section .lead-paragraph {
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* Hero Section */
.hero {
  padding: 32px 0 8px;
  text-align: left;
}

@media (max-width: 768px) {
  .hero {
    padding: 12px 0 0;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 44px;
  align-items: center;
  min-width: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.8vw, 46px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 14px;
  overflow-wrap: break-word;
  word-break: normal;
}

.hero-subtitle {
  font-size: clamp(14.5px, 1.25vw, 17px);
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.55;
  margin-bottom: 22px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-accent, .btn-primary {
  background: var(--utm-accent);
  color: #FFFFFF !important;
  box-shadow: var(--shadow-glow);
}

.btn-accent:hover, .btn-primary:hover {
  background: var(--utm-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 148, 115, 0.35);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-medium, #D1D5DB);
  color: var(--text-primary) !important;
}

.btn-ghost:hover {
  background: var(--bg-surface);
  border-color: var(--text-primary);
  transform: translateY(-1px);
}

.hero-ticks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 28px;
  padding: 0;
}

.hero-ticks li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-ticks svg {
  color: var(--utm-accent);
  flex-shrink: 0;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  max-width: 100%;
  min-width: 0;
}

.hero-trust-label {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}

.hero-trust-marquee {
  overflow: hidden;
  max-width: 340px;
  width: 100%;
  -webkit-mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.hero-trust-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.hero-trust:hover .hero-trust-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to { transform: translate(-50%); }
}

.logo-chip {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-chip .platform-logo {
  width: 20px;
  height: 20px;
  display: inline-flex;
}

.platform-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Hero Visual Mockup */
.hero-visual {
  position: relative;
  perspective: 1400px;
}

.hero-glow {
  position: absolute;
  top: -14%;
  right: -10%;
  bottom: -18%;
  left: -10%;
  z-index: 0;
  pointer-events: none;
  filter: blur(10px);
  background: radial-gradient(44% 52% at 64% 36%, rgba(0, 148, 115, 0.22), transparent 70%),
              radial-gradient(40% 44% at 26% 80%, rgba(5, 150, 105, 0.16), transparent 72%);
}

.browser-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  box-shadow: 0 30px 60px -22px rgba(17, 20, 24, 0.28), 0 14px 30px rgba(0, 148, 115, 0.12);
  animation: card-float 9s ease-in-out infinite;
}

.browser-frame:after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.55) 47%, rgba(153, 224, 206, 0.25) 52%, transparent 62%);
  background-size: 300% 300%;
  mix-blend-mode: screen;
  animation: sheen 7s ease-in-out infinite;
}

@keyframes card-float {
  0%, 100% { transform: rotateX(4deg) rotateY(-8deg) translateY(0); }
  50% { transform: rotateX(2deg) rotateY(-3deg) translateY(-12px); }
}

@keyframes sheen {
  0% { background-position: 180% 0; }
  55%, 100% { background-position: -60% 0; }
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #FDFDFE, #F2F4F7);
  border-bottom: 1px solid var(--border);
}

.bw-dots {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.bw-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.bw-dots .bw-dot:nth-child(1) { background: #FF5F57; }
.bw-dots .bw-dot:nth-child(2) { background: #FEBC2E; }
.bw-dots .bw-dot:nth-child(3) { background: #28C840; }

.browser-url {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto;
  max-width: 72%;
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--text-secondary);
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 5px 16px;
  box-shadow: inset 0 1px 2px rgba(17, 20, 24, 0.04);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-cube {
  position: absolute;
  left: -28px;
  bottom: -24px;
  width: 120px;
  height: 120px;
  z-index: 4;
  filter: drop-shadow(0 18px 36px rgba(0, 148, 115, 0.35));
  animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

.hero-float {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(17, 20, 24, 0.12);
  padding: 10px 14px;
}

.hero-float-free {
  top: -20px;
  left: -28px;
  animation: floatA 6.5s ease-in-out infinite;
}

.hf-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #009473, #059669);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(0, 148, 115, 0.3);
}

.hf-text {
  display: flex;
  flex-direction: column;
  line-height: 1.22;
}

.hf-text strong {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.hf-text span {
  font-size: 11px;
  color: var(--text-muted);
}

.hero-float-link {
  bottom: 40px;
  right: -34px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-secondary);
  animation: floatB 8s ease-in-out infinite;
}

.hero-float-link .hf-link-ic {
  color: var(--utm-accent);
  flex-shrink: 0;
}

.hf-ok {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #059669;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 960px;
  margin: 8px auto 24px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: var(--transition);
  text-align: left;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-border);
}

.step-n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  -webkit-text-stroke: 1.2px var(--utm-accent);
  color: transparent;
  display: block;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Anatomy Section */
.anatomy-card {
  background: #0F172A;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  max-width: 960px;
  margin: 0 auto;
  min-width: 0;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.anatomy-url {
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.5vw, 15.5px);
  line-height: 1.8;
  white-space: normal;
  word-break: break-all;
  overflow-wrap: anywhere;
  display: block;
  text-align: center;
  margin: 0 auto;
}

.an-base { color: #8B93A1; }
.an-key { color: #5EEAD4; font-weight: 600; }
.an-val { color: #34D399; }

.anatomy-legend {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.anatomy-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #B6BDC8;
}

.an-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.an-swatch.an-base { background: #8B93A1; }
.an-swatch.an-key { background: #5EEAD4; }
.an-swatch.an-val { background: #34D399; }

/* Platform Showcase */
.platform-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 960px;
  margin: 16px auto 0;
  text-align: left;
}

.platform-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-decoration: none !important;
  color: inherit;
  transition: var(--transition);
}

.platform-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--utm-accent);
}

.platform-card-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.platform-card-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.platform-card-text span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Features Bento */
.features-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 16px auto 0;
  text-align: left;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-border);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--utm-accent);
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   WiiM Signature Branded Accordion (.accordion-asked)
   ========================================================================== */
.heading-section {
  position: relative;
}

.heading-section.center {
  text-align: center;
}

.heading-section .heading-sub {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  position: relative !important;
  width: max-content !important;
  border-radius: 8px !important;
  color: var(--primary, #009473) !important;
  padding: 6px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  background: radial-gradient(62.56% 62.56% at 28.14% -10.42%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%), linear-gradient(0deg, #F5F5F5, #F5F5F5) !important;
  box-shadow: 0px -3px 0px 0px #E9E9E9 inset, 0px 1px 0px 0px rgba(255, 255, 255, 0.7) inset, 0px 3px 3px 0px rgba(0, 0, 0, 0.08) !important;
  margin: 0 auto 16px !important;
  text-transform: none !important;
}

.heading-section .heading-sub::before {
  content: "" !important;
  display: inline-block !important;
  position: static !important;
  transform: none !important;
  width: 18px !important;
  height: 18px !important;
  background-color: var(--primary, #009473) !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.53252 12.0966C3.75106 11.5025 4.59108 11.5025 4.81645 12.0966L5.54037 14.0567C5.60866 14.2411 5.75891 14.3913 5.9433 14.4596L7.90335 15.1835C8.49751 15.4021 8.49751 16.2421 7.90335 16.4674L5.9433 17.1914C5.75891 17.2597 5.60866 17.4099 5.54037 17.5943L4.81645 19.5543C4.59791 20.1485 3.75789 20.1485 3.53252 19.5543L2.8086 17.5943C2.74031 17.4099 2.59006 17.2597 2.40566 17.1914L0.44562 16.4674C-0.14854 16.2489 -0.14854 15.4089 0.44562 15.1835L2.40566 14.4596C2.59006 14.3913 2.74031 14.2411 2.8086 14.0567L3.53252 12.0966Z' fill='%23000'/%3E%3Cpath d='M11.4068 0.670991C11.7346 -0.223664 12.9981 -0.223664 13.3259 0.670991L14.7874 4.61157C14.8898 4.89157 15.1152 5.11011 15.3952 5.21938L19.3358 6.68088C20.2304 7.00869 20.2304 8.27214 19.3358 8.59995L15.3952 10.0614C15.1152 10.1639 14.8967 10.3893 14.7874 10.6693L13.3259 14.6098C12.9981 15.5045 11.7346 15.5045 11.4068 14.6098L9.94534 10.6693C9.8429 10.3893 9.61753 10.1707 9.33752 10.0614L5.39694 8.59995C4.50229 8.27214 4.50229 7.00869 5.39694 6.68088L9.33752 5.21938C9.61753 5.11694 9.83607 4.89157 9.94534 4.61157L11.4068 0.670991Z' fill='%23000'/%3E%3C/svg%3E") no-repeat center / contain !important;
  mask: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.53252 12.0966C3.75106 11.5025 4.59108 11.5025 4.81645 12.0966L5.54037 14.0567C5.60866 14.2411 5.75891 14.3913 5.9433 14.4596L7.90335 15.1835C8.49751 15.4021 8.49751 16.2421 7.90335 16.4674L5.9433 17.1914C5.75891 17.2597 5.60866 17.4099 5.54037 17.5943L4.81645 19.5543C4.59791 20.1485 3.75789 20.1485 3.53252 19.5543L2.8086 17.5943C2.74031 17.4099 2.59006 17.2597 2.40566 17.1914L0.44562 16.4674C-0.14854 16.2489 -0.14854 15.4089 0.44562 15.1835L2.40566 14.4596C2.59006 14.3913 2.74031 14.2411 2.8086 14.0567L3.53252 12.0966Z' fill='%23000'/%3E%3Cpath d='M11.4068 0.670991C11.7346 -0.223664 12.9981 -0.223664 13.3259 0.670991L14.7874 4.61157C14.8898 4.89157 15.1152 5.11011 15.3952 5.21938L19.3358 6.68088C20.2304 7.00869 20.2304 8.27214 19.3358 8.59995L15.3952 10.0614C15.1152 10.1639 14.8967 10.3893 14.7874 10.6693L13.3259 14.6098C12.9981 15.5045 11.7346 15.5045 11.4068 14.6098L9.94534 10.6693C9.8429 10.3893 9.61753 10.1707 9.33752 10.0614L5.39694 8.59995C4.50229 8.27214 4.50229 7.00869 5.39694 6.68088L9.33752 5.21938C9.61753 5.11694 9.83607 4.89157 9.94534 4.61157L11.4068 0.670991Z' fill='%23000'/%3E%3C/svg%3E") no-repeat center / contain !important;
  flex-shrink: 0 !important;
  border-radius: 0 !important;
}

.accordion-asked {
  display: grid;
  gap: 16px;
  max-width: 900px;
  margin: 28px auto 0;
  text-align: left;
}

.accordion-asked .accordion-asked-item {
  padding: 24px 36px;
  border-radius: 24px;
  background-color: #F8F9FA;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0px 7.77px 16px 0px rgba(0, 0, 0, 0.04), 0px 3px 3px 0px rgba(0, 0, 0, 0.06), 0px -6px 0px 0px rgba(0, 0, 0, 0.03) inset, 0px 4px 0px 0px rgba(255, 255, 255, 0.8) inset;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-asked .accordion-asked-item:hover {
  border-color: rgba(0, 148, 115, 0.25);
  box-shadow: 0px 10px 24px 0px rgba(0, 0, 0, 0.06), 0px 3px 3px 0px rgba(0, 0, 0, 0.06), 0px -6px 0px 0px rgba(0, 0, 0, 0.03) inset, 0px 4px 0px 0px rgba(255, 255, 255, 0.8) inset;
}

.accordion-asked .accordion-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--text-primary, #111827);
  cursor: pointer;
  transition: color 0.25s ease;
}

.accordion-asked .accordion-button:hover {
  color: var(--primary, #009473);
}

.accordion-asked .accordion-button::after {
  display: none !important;
}

.accordion-asked .accordion-button span.right-icon {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(0deg, #272727, #272727), radial-gradient(62.56% 62.56% at 28.14% -10.42%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
  box-shadow: 0px -3px 0px 0px #080808 inset, 0px 1px 0px 0px rgba(255, 255, 255, 0.3) inset, 0px 2.77px 2.21px 0px rgba(0, 0, 0, 0.12), 0px 3px 3px 0px rgba(0, 0, 0, 0.14);
  transition: transform 0.25s ease;
}

.accordion-asked .accordion-button:hover span.right-icon {
  transform: scale(1.05);
}

.accordion-asked .accordion-button span.right-icon::before {
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 11px;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.accordion-asked .accordion-button span.right-icon::after {
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 11px;
  background-color: #FFFFFF;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.accordion-asked .accordion-button:not(.collapsed) span.right-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-asked .accordion-collapse {
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.accordion-asked .accordion-collapse:not(.show) {
  display: none;
}

.accordion-asked .accordion-body {
  padding-top: 28px;
  margin-top: 6px;
  position: relative;
  font-size: 15px;
  line-height: 1.68;
  color: var(--text-secondary, #4B5563);
}

.accordion-asked .accordion-body::before {
  position: absolute;
  content: "";
  top: 14px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 212, 216, 0) 0%, #D4D4D8 50%, rgba(212, 212, 216, 0) 100%);
}

.accordion-asked .accordion-body code {
  background: rgba(0, 148, 115, 0.08);
  color: var(--primary, #009473);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13.5px;
  font-family: var(--font-mono, monospace);
  font-weight: 500;
}

@media (max-width: 767px) {
  .accordion-asked .accordion-asked-item {
    padding: 20px 18px;
    border-radius: 18px;
  }
  .accordion-asked .accordion-button {
    font-size: 15.5px;
    gap: 12px;
  }
  .accordion-asked .accordion-button span.right-icon {
    width: 28px;
    height: 28px;
  }
  .accordion-asked .accordion-body {
    padding-top: 22px;
    font-size: 14px;
  }
}

/* Backward compatibility for any remaining .faq-grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1040px;
  margin: 28px auto 0;
  text-align: left;
}

.faq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 16px);
  padding: 24px;
}

/* ==============================================================================
   BOTTOM CTA BAND (.cta-band)
   Centered call-to-action block matching WiiM Agency aesthetics
   ============================================================================== */
.cta-band {
  width: 100%;
  max-width: var(--maxw);
  margin: 30px auto 60px;
  padding: 0 24px;
  box-sizing: border-box;
  text-align: center;
}

.cta-band .reveal,
.cta-band > div {
  background: linear-gradient(135deg, #FFFFFF 0%, #E6F7F2 100%);
  border: 1.5px solid var(--accent-border, rgba(0, 148, 115, 0.2));
  border-radius: var(--radius-lg, 16px);
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 148, 115, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1.25;
}

.cta-band p {
  font-size: 15.5px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.6;
  text-align: center;
}

.cta-band .btn-accent,
.cta-band .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(0, 148, 115, 0.25);
  text-align: center;
}

/* ==============================================================================
   AUTHENTIC WIIM AGENCY FOOTER (.wiim-footer & .site-footer)
   Matching main website signature footer (#EDECEC background & white watermark logo)
   ============================================================================== */
.wiim-footer, footer.wiim-footer, footer.site-footer, footer#footer {
  position: relative;
  background: #EDECEC !important;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 60px 0 0 !important;
  overflow: hidden;
  font-family: var(--font-sans);
  color: var(--text-primary);
  width: 100%;
}

.wiim-footer .footer-image, footer .footer-image {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 50px;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
}

.wiim-footer .footer-image img, footer .footer-image img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  opacity: 1 !important;
  display: block;
  margin: 0 auto;
}

.wiim-footer .container, .site-footer .container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.wiim-footer .footer-content, footer .footer-content {
  text-align: center;
  padding-bottom: 70px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wiim-footer .footer-content .title,
.wiim-footer .footer-head .footer-title,
.site-footer .footer-content .title {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #111827;
  margin-bottom: 12px;
  text-align: center;
}

.wiim-footer .footer-content .text,
.site-footer .footer-content .text {
  font-size: 16px;
  color: #6B7280;
  margin-bottom: 36px;
  text-align: center;
}

/* Authentic Pill Social Buttons */
.wiim-footer .tf-social-1,
.wiim-footer .social-list,
.site-footer .tf-social-1 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 auto 20px;
  padding: 0;
  list-style: none;
}

.wiim-footer .tf-social-1 a,
.wiim-footer .social-list a,
.site-footer .tf-social-1 a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 24px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 9999px;
  color: #111827;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.wiim-footer .tf-social-1 a:hover,
.wiim-footer .social-list a:hover,
.site-footer .tf-social-1 a:hover {
  background-color: #FFFFFF;
  color: var(--primary, #009473);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}

.wiim-footer .tf-social-1 .social-item,
.wiim-footer .social-list .social-item,
.site-footer .tf-social-1 .social-item {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.wiim-footer .tf-social-1 a:hover .social-item,
.wiim-footer .social-list a:hover .social-item,
.site-footer .tf-social-1 a:hover .social-item {
  background: var(--primary, #009473);
  color: #FFFFFF;
}

/* Footer Bottom Bar */
.wiim-footer .footer-bottom, .site-footer .footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 24px 0;
  font-size: 13.5px;
  color: #6B7280;
  text-align: center;
}

.wiim-footer .footer-bottom-inner, .site-footer .footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 16px;
  text-align: center;
}

.wiim-footer .footer-bottom-menu, .site-footer .footer-bottom-menu {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.wiim-footer .footer-bottom-menu .menu-list, .site-footer .footer-bottom-menu .menu-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  text-align: center;
}

.wiim-footer .footer-bottom-menu .menu-list a, .site-footer .footer-bottom-menu .menu-list a {
  color: #4B5563;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.18s ease;
}

.wiim-footer .footer-bottom-menu .menu-list a:hover, .site-footer .footer-bottom-menu .menu-list a:hover {
  color: var(--primary, #009473);
}

.wiim-footer .copyright, .site-footer .copyright {
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
}

.wiim-footer .copyright p, .site-footer .copyright p {
  margin: 0 auto;
  font-size: 13px;
  color: #6B7280;
  text-align: center;
  width: 100%;
}

@media (max-width: 640px) {
  .wiim-footer .tf-social-1,
  .wiim-footer .social-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
  .wiim-footer .tf-social-1 a,
  .wiim-footer .social-list a {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    gap: 8px;
  }
}

/* Service Navigation Grid */
.footer-service-nav {
  margin: 10px 0 36px;
  padding: 28px 24px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.footer-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .footer-service-nav {
    margin: 8px 0 22px;
    padding: 18px 14px;
  }
  .footer-service-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.footer-service-head {
  display: block;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-service-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-service-links a {
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-service-links a:hover {
  color: var(--utm-accent);
}

/* Main Site Footer Bottom */
.wiim-footer .footer-bottom, .site-footer .footer-bottom {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 28px 0 32px;
  border-top: 1px solid var(--border);
}

.wiim-footer .footer-nav, .site-footer .footer-nav {
  width: 100%;
  display: flex;
  justify-content: center;
}

.wiim-footer .footer-links, .site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  .wiim-footer .footer-links, .site-footer .footer-links {
    gap: 8px 16px;
    font-size: 12.5px;
  }
}

.wiim-footer .footer-links li, .site-footer .footer-links li {
  margin: 0;
  padding: 0;
}

.wiim-footer .footer-links a, .site-footer .footer-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  padding: 3px 0;
  transition: color 0.18s ease;
}

.wiim-footer .footer-links a:hover, .site-footer .footer-links a:hover {
  color: var(--utm-accent);
}

.wiim-footer .footer-meta, .site-footer .footer-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  gap: 16px;
  flex-wrap: wrap;
}

.wiim-footer .footer-meta .coppy-rights, .site-footer .footer-meta .coppy-rights {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.wiim-footer .footer-meta .action-go-top, .site-footer .footer-meta .action-go-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.wiim-footer .footer-meta .action-go-top:hover, .site-footer .footer-meta .action-go-top:hover {
  color: #FFFFFF;
  background: var(--utm-accent);
  border-color: var(--utm-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 148, 115, 0.3);
}

/* ==============================================================================
   RESPONSIVE QUERIES
   ============================================================================== */
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    min-width: 0;
  }
  .hero-visual {
    order: 1; /* keep text first, mockup second on mobile */
  }
  .steps-grid, .features-bento {
    grid-template-columns: 1fr;
  }
  .platform-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
  .page.landing {
    gap: 56px;
  }
  .hero-float-link {
    display: none;
  }
  .hero-float-free {
    top: -16px;
    left: 4px;
  }
}

.cta-text-short {
  display: none;
}

@media (max-width: 560px) {
  .site-header-inner {
    padding: 10px 14px;
    gap: 8px;
  }
  .cta-text-full {
    display: none;
  }
  .cta-text-short {
    display: inline;
  }
  .logo-area {
    min-width: 0;
    flex-shrink: 1;
    gap: 8px;
  }
  .brand-logo {
    width: 28px;
    height: 28px;
  }
  .brand-wordmark {
    font-size: 13.5px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-wordmark .brand-divider,
  .brand-wordmark .brand-name {
    display: none;
  }
  .site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  .site-nav a:not(.nav-cta) {
    display: none;
  }
  .site-nav .nav-cta {
    display: inline-flex !important;
    padding: 6px 12px;
    font-size: 12.5px;
    flex-shrink: 0;
  }
  .site-nav .nav-cta svg {
    display: none;
  }
  .hero-trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }
  .hero-trust-marquee {
    max-width: 100%;
    width: 100%;
  }
  .hero-h1 {
    font-size: clamp(21px, 5.8vw, 28px);
    line-height: 1.18;
    letter-spacing: -0.02em;
  }
  .page {
    padding: 0 16px 48px;
  }
  .hero {
    padding: 24px 0 0;
  }
  .hero-subtitle {
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 20px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-visual {
    overflow: hidden;
    border-radius: 14px;
  }
  .hero-cube, .hero-float, .hero-glow {
    display: none;
  }
  .platform-showcase, .site-footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

/* Mobile Quick Copy Floating Dock */
.mobile-bottom-bar {
  display: none;
}

@media (max-width: 991px) {
  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px max(14px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.12);
    z-index: 999;
    justify-content: center;
    transform: translateY(120%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  }

  .mobile-bottom-bar.is-visible {
    transform: translateY(0);
  }

  .btn-mobile-copy {
    width: 100%;
    max-width: 440px;
    height: 48px;
    background: linear-gradient(135deg, #009473 0%, #007a5e 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 14.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 148, 115, 0.35);
    transition: background-color 0.2s, transform 0.12s, box-shadow 0.2s;
  }

  .btn-mobile-copy:active {
    transform: scale(0.98);
  }

  .btn-mobile-copy.is-copied {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  }

  .utm-page-wrap {
    padding-bottom: 90px;
  }
}

/* ==========================================================================
   WiiM Agency - Scroll to Top & WhatsApp Floating Action Button (FAB)
   ========================================================================== */

/* Button Go Top */
#goTop {
  position: fixed;
  padding: 0;
  bottom: 96px !important;
  right: 32px !important;
  width: 38px;
  height: 38px;
  background: #0A0A0A;
  color: #FFFFFF;
  font-size: 20px;
  text-align: center;
  line-height: 50px;
  cursor: pointer;
  border: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  border-radius: 99px;
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.4);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
}

#goTop .border-progress {
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  border-radius: 99px;
  border: 1px solid #009473;
  mask-image: conic-gradient(#009473 var(--progress-angle, 0deg), transparent 0);
  -webkit-mask-image: conic-gradient(#009473 var(--progress-angle, 0deg), transparent 0);
  content: "";
  z-index: 1;
  transition: all 0.3s ease;
}

#goTop.show {
  opacity: 1;
  visibility: visible;
}

#goTop .ic-wrap {
  transition: all 0.3s ease;
  animation: goTopIconBounce 2s linear 0s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

#goTop .ic-wrap svg {
  display: block;
  width: 18px;
  height: 18px;
  stroke: #FFFFFF;
}

#goTop:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

@keyframes goTopIconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Floating WhatsApp FAB */
.wiim-whatsapp-fab {
  position: fixed !important;
  bottom: 28px !important;
  right: 28px !important;
  z-index: 999999 !important;
  display: flex;
  align-items: center;
  text-decoration: none !important;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wiim-whatsapp-fab:hover {
  transform: scale(1.06) translateY(-2px);
}

.wiim-whatsapp-fab:active {
  transform: scale(0.96);
}

.wiim-wa-pulse {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.45);
  animation: wiimWaPulse 2.2s infinite ease-out;
  pointer-events: none;
  z-index: 1;
}

@keyframes wiimWaPulse {
  0% { transform: scale(0.95); opacity: 0.9; }
  70% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

.wiim-wa-icon-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #1ebd5b 50%, #128C7E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 24px -2px rgba(37, 211, 102, 0.48), 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
  transition: box-shadow 0.3s ease;
}

.wiim-whatsapp-fab:hover .wiim-wa-icon-wrap {
  box-shadow: 0 12px 30px -2px rgba(37, 211, 102, 0.65), 0 4px 10px rgba(0, 0, 0, 0.25);
}

.wiim-wa-svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.wiim-whatsapp-fab:hover .wiim-wa-svg {
  transform: rotate(-6deg) scale(1.05);
}

.wiim-wa-tooltip {
  position: absolute;
  right: 68px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 14px 8px 12px;
  border-radius: 99px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 3;
}

.wiim-wa-tooltip::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid rgba(15, 23, 42, 0.92);
}

.wiim-wa-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 8px #25D366;
  display: inline-block;
  animation: wiimWaDot 1.5s infinite ease-in-out;
}

@keyframes wiimWaDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.wiim-whatsapp-fab:hover .wiim-wa-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

@media (max-width: 991px) {
  .wiim-whatsapp-fab {
    bottom: 20px !important;
    right: 20px !important;
  }
  #goTop {
    bottom: 84px !important;
    right: 24px !important;
  }
  .wiim-wa-pulse,
  .wiim-wa-icon-wrap {
    width: 52px;
    height: 52px;
  }
  .wiim-wa-svg {
    width: 28px;
    height: 28px;
  }
}
