/* =============================================
  UniDoc Watermark — styles-watermark.css
   Dark theme matching Flutter app (Material 3)
   NO black text anywhere.
   ============================================= */

/* ── Variables ── */
:root {
  --primary: #7C4DFF;
  --primary-light: #B388FF;
  --primary-dark: #5E35B1;
  --secondary: #00E5FF;
  --tertiary: #FF4081;
  --accent-purple: #E040FB;
  --accent-amber: #FFB300;
  --accent-cyan: #00BCD4;
  --tool-orange: #FF9100;
  --tool-orange-dark: #FF6D00;
  --surface: rgba(26,27,33,0.7);
  --surface-solid: #1A1B21;
  --surface-container: #252731;
  --background: #0D0E12;
  --text: #FFFFFF;
  --text-secondary: rgba(255,255,255,0.60);
  --text-muted: rgba(255,255,255,0.40);
  --border: rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.12);
  --outline: rgba(255,255,255,0.24);
  --outline-var: rgba(255,255,255,0.10);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 10px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow: 0 8px 32px rgba(0,0,0,0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: var(--text); }
input, select, textarea { font-family: inherit; color: var(--text); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

/* ── Background Animation ── */
.bg-animation { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg-gradient { position: absolute; inset: 0; background:
  radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124,77,255,0.15), transparent),
  radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0,229,255,0.08), transparent),
  radial-gradient(ellipse 50% 30% at 10% 60%, rgba(255,64,129,0.06), transparent);
}
.bg-particles { position: absolute; inset: 0; }
.particle {
  position: absolute; width: 2px; height: 2px; background: rgba(124,77,255,0.4);
  border-radius: 50%; animation: float linear infinite;
}
@keyframes float {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }  90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0;
  background: rgba(13,14,18,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; }
.nav-logo-img { width: 32px; height: 32px; border-radius: 8px; }
.logo-text { color: var(--text); }
.logo-accent { color: var(--primary); }
.nav-links { display: flex; gap: 6px; }
.nav-link {
  padding: 8px 16px; border-radius: var(--radius-xs); font-size: 0.88rem;
  font-weight: 500; color: var(--text-secondary); transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(124,77,255,0.1); }
.nav-cta {
  display: flex; align-items: center; gap: 8px; padding: 10px 20px;
  background: var(--primary); border-radius: var(--radius-sm); font-size: 0.85rem;
  font-weight: 600; color: #fff; transition: var(--transition);
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.nav-cta .material-icons-round { font-size: 18px; }
.nav-toggle { display: none; color: var(--text); padding: 8px; }

.mobile-menu {
  display: none; position: fixed; top: 60px; left: 0; right: 0;
  background: rgba(13,14,18,0.95); backdrop-filter: blur(20px);
  padding: 16px 24px; border-bottom: 1px solid var(--border); z-index: 99;
  flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-link {
  padding: 12px 16px; border-radius: var(--radius-xs); font-weight: 500;
  color: var(--text-secondary); transition: var(--transition);
}
.mobile-link:hover { color: var(--text); background: rgba(124,77,255,0.1); }

/* ── Hero ── */
.hero { padding: 150px 0 80px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px;
  background: rgba(124,77,255,0.12); border: 1px solid rgba(124,77,255,0.25);
  border-radius: 100px; font-size: 0.85rem; font-weight: 600; color: var(--primary-light);
  margin-bottom: 32px;
}
.hero-badge .material-icons-round { font-size: 18px; }
.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: 1.12;
  letter-spacing: -0.02em; margin-bottom: 20px; color: var(--text);
}
.gradient-text {
  background: linear-gradient(135deg, var(--tool-orange), var(--tool-orange-dark), var(--tertiary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem; color: var(--text-secondary); max-width: 600px;
  margin: 0 auto 36px; line-height: 1.7;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px;
  border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600;
  transition: var(--transition); white-space: nowrap;
}
.btn .material-icons-round { font-size: 20px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,77,255,0.3); }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

.text-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
  border-radius: var(--radius-xs); font-size: 0.85rem; font-weight: 600;
  color: var(--primary-light); transition: var(--transition);
}
.text-btn:hover { background: rgba(124,77,255,0.08); }
.text-btn .material-icons-round { font-size: 18px; }

.outlined-btn {
  display: flex; align-items: center; gap: 10px; padding: 12px 20px;
  border: 1px solid var(--outline-var); border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600; color: var(--text); background: transparent;
  transition: var(--transition); flex: 1;
}
.outlined-btn:hover { border-color: var(--primary); background: rgba(124,77,255,0.06); }

/* ── Sections ── */
.tool-section { padding: 60px 0 80px; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-icon {
  display: inline-flex; padding: 14px; border-radius: var(--radius);
  margin-bottom: 16px;
}
.section-icon .material-icons-round { font-size: 30px; color: #fff; }
.tool-accent { background: linear-gradient(135deg, var(--tool-orange), var(--tool-orange-dark)); }
.section-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.section-subtitle { font-size: 1rem; color: var(--text-secondary); max-width: 520px; margin: 0 auto; }
.section-subtitle strong { color: var(--text); font-weight: 600; }

/* ── Editor Card (main tool) ── */
.editor-card {
  position: relative;
  max-width: 560px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ── List Tile (PDF / Image selector) ── */
.list-tile {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius); cursor: pointer;
  transition: var(--transition);
}
.list-tile:hover { background: rgba(255,255,255,0.03); }
.tile-leading {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface-container); flex-shrink: 0;
}
.tile-leading .material-icons-round { font-size: 24px; color: var(--text-muted); }
.tile-leading.active { background: rgba(124,77,255,0.15); }
.tile-leading.active .material-icons-round { color: var(--primary); }
.tile-body { flex: 1; min-width: 0; }
.tile-title { display: block; font-size: 0.92rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-sub { display: block; font-size: 0.78rem; color: var(--text-muted); }
.tile-trailing { font-size: 16px; color: var(--text-muted); flex-shrink: 0; }

.hidden-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 5; }

.img-leading { overflow: hidden; }
.img-leading img { width: 44px; height: 44px; object-fit: cover; border-radius: 12px; }

/* ── Segmented Button ── */
.segmented-btn {
  display: flex; gap: 0; border-radius: var(--radius-sm);
  background: var(--surface-container); padding: 4px; margin: 4px 0 16px;
}
.seg {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; border-radius: 10px; font-size: 0.88rem; font-weight: 600;
  color: var(--text-secondary); transition: var(--transition);
}
.seg:hover { color: var(--text); }
.seg.active {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 12px rgba(124,77,255,0.35);
}
.seg .material-icons-round { font-size: 20px; }

/* ── Config Panels ── */
.config-panel { padding: 4px 0; }

/* Preset Chips */
.presets-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.presets-scroll::-webkit-scrollbar { display: none; }

.chip {
  display: flex; align-items: center; gap: 6px; padding: 8px 14px;
  border-radius: var(--radius-xs); font-size: 0.82rem; font-weight: 600;
  background: var(--surface-container); border: 1px solid var(--outline-var);
  color: var(--text-secondary); white-space: nowrap; transition: var(--transition);
  flex-shrink: 0;
}
.chip:hover { border-color: var(--primary); color: var(--text); }
.chip.selected {
  background: rgba(124,77,255,0.15); border-color: var(--primary);
  color: var(--primary-light);
}
.chip-dot {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ── Fields ── */
.field { margin-bottom: 14px; }
.field-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.field-input-wrap {
  display: flex; align-items: center; background: rgba(26,27,33,0.5);
  border: 1px solid var(--outline-var); border-radius: 14px; padding: 0 4px 0 16px;
  transition: var(--transition);
}
.field-input-wrap:focus-within { border-color: var(--primary); }
.field-input-wrap input {
  flex: 1; padding: 12px 0; background: none; border: none; outline: none;
  font-size: 0.95rem; font-weight: 600; color: var(--text);
}
.field-input-wrap input::placeholder { color: var(--text-muted); }
.field-clear {
  padding: 8px; border-radius: 50%; color: var(--text-muted); transition: var(--transition);
}
.field-clear:hover { background: rgba(255,255,255,0.05); color: var(--text-secondary); }
.field-clear .material-icons-round { font-size: 20px; }

.field.compact { flex: 1; margin-bottom: 0; }
.field.compact select {
  width: 100%; padding: 12px 16px; background: rgba(26,27,33,0.5);
  border: 1px solid var(--outline-var); border-radius: 14px; font-size: 0.9rem;
  color: var(--text); cursor: pointer; outline: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff60' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  transition: var(--transition);
}
.field.compact select:focus { border-color: var(--primary); }
.field.compact select option { background: var(--surface-solid); color: var(--text); }

.row-2 { display: flex; gap: 12px; align-items: flex-end; }

.color-swatch {
  display: inline-block; width: 20px; height: 20px; border-radius: 50%;
  background: #D32F2F; border: 2px solid rgba(255,255,255,0.24); flex-shrink: 0;
}

/* ── Interactive Editor ── */
.editor-block { padding: 4px 0; }
.editor-block-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
}
.editor-block-title { font-size: 0.9rem; font-weight: 600; color: var(--text); }

.canvas-area {
  position: relative;
  /* A4 proportion: 210mm × 297mm ≈ 1:1.414 */
  width: 100%;
  aspect-ratio: 210 / 297;
  max-height: 520px;
  background: var(--surface-container); border-radius: var(--radius);
  border: 1px solid var(--outline-var); overflow: hidden;
  touch-action: none; user-select: none;
}

/* Simulated PDF Page */
.pdf-sim {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 72%; height: 90%;
  background: #F5F5F5;
  border-radius: 4px; padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: flex; flex-direction: column; gap: 8px;
}
.sl { height: 7px; border-radius: 2px; background: #D0D0D0; }
.w100 { width: 100%; } .w80 { width: 80%; } .w70 { width: 70%; }
.w55 { width: 55%; }  .w40 { width: 40%; }

/* Watermark overlay */
.wm-box {
  position: absolute; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--primary); border-radius: 8px;
  padding: 8px 16px; cursor: grab; z-index: 5;
  will-change: transform;
}
.wm-box:active { cursor: grabbing; }
.wm-text {
  font-weight: 700; white-space: nowrap; pointer-events: none; line-height: 1;
  color: #D32F2F; /* initial from preset, updated by JS */
}
.wm-img { max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; }

/* Handle (rotation / scale) */
.wm-handle {
  position: absolute; width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  cursor: grab; z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.wm-handle:active { cursor: grabbing; }
.wm-handle .material-icons-round { font-size: 18px; color: #fff; }

.hint-text { font-size: 0.78rem; color: var(--text-muted); margin-top: 8px; }

/* ── Controls ── */
.controls { padding: 4px 0; }
.ctrl-label-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ctrl-icon { font-size: 20px; color: var(--text-secondary); }
.ctrl-label-row span:last-child { font-size: 0.88rem; font-weight: 500; color: var(--text); }

/* Range Slider */
.range-slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  background: var(--surface-container); border-radius: 3px; outline: none;
  margin-bottom: 16px;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); border: 3px solid var(--surface-solid);
  box-shadow: 0 2px 8px rgba(124,77,255,0.4); cursor: pointer;
  transition: var(--transition);
}
.range-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.range-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--primary);
  border: 3px solid var(--surface-solid); box-shadow: 0 2px 8px rgba(124,77,255,0.4);
  cursor: pointer;
}

/* Switch Tile */
.switch-tile {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; cursor: pointer; margin-bottom: 8px;
}
.switch-tile-left { display: flex; align-items: center; gap: 12px; }
.switch-title { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.switch-sub { display: block; font-size: 0.78rem; color: var(--text-muted); }

.toggle { position: relative; display: inline-block; }
.toggle input { display: none; }
.toggle-track {
  display: block; width: 48px; height: 26px; background: var(--surface-container);
  border-radius: 13px; transition: var(--transition); position: relative;
}
.toggle-track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  background: #fff; border-radius: 50%; transition: var(--transition);
}
.toggle input:checked + .toggle-track { background: var(--primary); }
.toggle input:checked + .toggle-track::after { transform: translateX(22px); }

/* ── Save Button ── */
.save-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 16px; margin-top: 16px;
  background: var(--primary); border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 600; color: #fff;
  transition: var(--transition);
}
.save-btn:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(124,77,255,0.3); }
.save-btn:disabled { opacity: 0.38; cursor: not-allowed; transform: none; }
.save-btn .material-icons-round { font-size: 22px; }

/* spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.save-btn.loading .save-btn-icon {
  animation: spin 1s linear infinite;
}

/* ── Result Panel ── */
.result-panel {
  text-align: center; padding: 32px 16px;
}
.result-check { font-size: 56px; color: #4CAF50; margin-bottom: 12px; }
.result-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.result-desc { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 24px; }

/* ── Color Modal ── */
.modal-bg {
  position: fixed; inset: 0; z-index: 500; display: flex;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
}
.modal-dialog {
  background: var(--surface-solid); border-radius: var(--radius-lg);
  padding: 24px; min-width: 300px; max-width: 380px;
  border: 1px solid var(--border);
}
.modal-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.color-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.color-circle {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 3px solid transparent; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.color-circle:hover { transform: scale(1.1); }
.color-circle.selected {
  border-color: #fff; box-shadow: 0 0 10px currentColor;
}
.color-circle.selected::after {
  content: '\e5ca'; /* check icon */
  font-family: 'Material Icons Round'; font-size: 20px; color: #fff;
}
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; }

/* ── Features ── */
.features-section { padding: 80px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  padding: 24px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: var(--transition);
  backdrop-filter: blur(10px);
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.feature-icon {
  display: inline-flex; padding: 12px; border-radius: 14px; margin-bottom: 16px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}
.feature-icon .material-icons-round { font-size: 24px; color: var(--accent); }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.feature-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* ── How It Works ── */
.how-section { padding: 80px 0; }
.steps-list { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.step-row { display: flex; align-items: flex-start; gap: 20px; width: 100%; }
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--tool-orange), var(--tool-orange-dark));
  font-size: 1.3rem; font-weight: 800; color: #fff;
}
.step-row h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.step-row p { font-size: 0.88rem; color: var(--text-secondary); }
.step-line { width: 2px; height: 32px; background: linear-gradient(to bottom, var(--tool-orange), transparent); margin-left: 23px; }

/* ── SEO ── */
.seo-section { padding: 60px 0; }
.seo-card {
  max-width: 740px; margin: 0 auto; padding: 36px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); backdrop-filter: blur(10px);
}
.seo-card h2 {
  font-size: 1.4rem; font-weight: 700; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--tool-orange), var(--tertiary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.seo-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.8; margin-bottom: 12px; }
.seo-card p:last-child { margin-bottom: 0; }
.seo-card strong { color: var(--text); font-weight: 600; }

/* ── FAQ ── */
.faq-section { padding: 80px 0; }
.faq-list { max-width: 660px; margin: 0 auto; }
.faq-item {
  margin-bottom: 10px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xs); overflow: hidden; transition: var(--transition);
}
.faq-item[open] { border-color: rgba(124,77,255,0.3); }
.faq-item summary {
  padding: 16px 22px; font-size: 0.92rem; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  color: var(--text); transition: var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--text-muted); font-weight: 300; }
.faq-item[open] summary::after { content: '\2212'; color: var(--primary); }
.faq-item summary:hover { color: var(--primary-light); }
.faq-item p { padding: 0 22px 16px; color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7; }

/* ── Footer ── */
.footer { padding: 40px 0 28px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo { width: 28px; height: 28px; border-radius: 8px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.88rem; color: var(--text-secondary); transition: var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { padding-top: 20px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); text-align: center; }

/* ── Toast ── */
.toast {
  position: fixed; bottom: -80px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 14px 24px;
  background: var(--surface-solid); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  z-index: 200; transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast.show { bottom: 28px; }
.toast-icon { font-size: 22px; }
.toast-icon.success { color: #4CAF50; }
.toast-icon.error { color: var(--tertiary); }
#toastMsg { font-size: 0.88rem; font-weight: 500; color: var(--text); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 120px 0 60px; }
  .hero-title { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .editor-card { padding: 16px; }
  .row-2 { flex-direction: column; }
  .outlined-btn { flex: auto; }
  .canvas-area { max-height: 400px; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .seo-card { padding: 24px; }
}
@media (max-width: 480px) {
  .canvas-area { max-height: 340px; }
  .pdf-sim { width: 75%; height: 88%; }
}
