/* ============================================================
   AiLoveKit - Design System (redesign v2)
   Dark-first privacy theme. Light mode via .light-mode on <body>.
   Fonts: Inter (self-hosted variable, Google Fonts fallback)
   ============================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/inter-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/static/fonts/jbmono-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand-primary: #E5417A;
  --brand-primary-light: #F472A0;
  --brand-primary-dark: #C21E5C;
  --brand-primary-dim: rgba(229,65,122,0.12);
  --brand-primary-glow: rgba(229,65,122,0.25);
  --accent-blue: #3B82F6;
  --accent-blue-dim: rgba(59,130,246,0.12);
  --accent-cyan: #06B6D4;
  --accent-cyan-dim: rgba(6,182,212,0.12);
  --accent-amber: #F59E0B;
  --accent-amber-dim: rgba(245,158,11,0.12);
  --accent-emerald: #10B981;
  --accent-emerald-dim: rgba(16,185,129,0.12);
  --accent-violet: #8B5CF6;
  --accent-violet-dim: rgba(139,92,246,0.12);
  --bg-base: #070A12;
  --bg-primary: #0B0F1A;
  --bg-secondary: #111827;
  --bg-tertiary: #1A2235;
  --bg-elevated: #1E293B;
  --bg-glass: rgba(17,24,39,0.85);
  --border-subtle: rgba(148,163,184,0.08);
  --border-default: rgba(148,163,184,0.12);
  --border-hover: rgba(148,163,184,0.22);
  --border-brand: rgba(229,65,122,0.3);
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-tertiary: #475569;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
  --shadow-brand: 0 0 40px rgba(229,65,122,0.12);
  --shadow-brand-lg: 0 8px 40px rgba(229,65,122,0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}
.light-mode {
  --bg-base: #F8FAFC;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F1F5F9;
  --bg-tertiary: #E2E8F0;
  --bg-elevated: #FFFFFF;
  --bg-glass: rgba(255,255,255,0.92);
  --border-subtle: rgba(148,163,184,0.15);
  --border-default: rgba(148,163,184,0.25);
  --border-hover: rgba(148,163,184,0.4);
  --border-brand: rgba(229,65,122,0.25);
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-tertiary: #94A3B8;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06);
  --shadow-md: 0 4px 16px rgba(15,23,42,0.08);
  --shadow-lg: 0 8px 32px rgba(15,23,42,0.12);
  --shadow-brand: 0 0 40px rgba(229,65,122,0.08);
  --shadow-brand-lg: 0 8px 40px rgba(229,65,122,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}
img, svg { vertical-align: middle; }
a { color: var(--brand-primary-light); }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 10px; }

/* ---------- Ambient background ---------- */
.ambient-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.ambient-orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5; animation: orbDrift 25s ease-in-out infinite; }
.ambient-orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, var(--brand-primary-dim), transparent 70%); top: -15%; left: -10%; }
.ambient-orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, var(--accent-blue-dim), transparent 70%); bottom: -10%; right: -5%; animation-delay: -8s; }
.ambient-orb-3 { width: 400px; height: 400px; background: radial-gradient(circle, var(--accent-violet-dim), transparent 70%); top: 45%; left: 55%; animation-delay: -16s; }
@keyframes orbDrift {
  0%,100% { transform: translate(0,0) scale(1); }
  25% { transform: translate(40px,-50px) scale(1.08); }
  50% { transform: translate(-30px,30px) scale(0.95); }
  75% { transform: translate(20px,-20px) scale(1.03); }
}
.grid-pattern { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.025; background-image: linear-gradient(rgba(255,255,255,0.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.03) 1px,transparent 1px); background-size: 60px 60px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: var(--bg-glass); backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8); border-bottom: 1px solid var(--border-subtle); }
.header-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { height: 30px; width: auto; display: block; }
.logo-light { display: none; }
.light-mode .logo-light { display: block; }
.light-mode .logo-dark { display: none; }
.footer .logo-img { height: 34px; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark)); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px var(--brand-primary-glow); flex-shrink: 0; }
.logo-mark svg { width: 18px; height: 18px; color: #fff; }
.logo-text-only { font-weight: 800; font-size: 20px; letter-spacing: -0.6px; color: var(--text-primary); display: flex; align-items: center; gap: 10px; }
.logo-text-only span { color: var(--brand-primary); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav-link { padding: 8px 16px; border-radius: var(--radius-sm); color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.2s cubic-bezier(0.4,0,0.2,1); position: relative; }
.nav-link:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.nav-link.active { color: var(--brand-primary); background: var(--brand-primary-dim); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.privacy-pill { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 100px; background: var(--accent-emerald-dim); border: 1px solid rgba(16,185,129,0.2); font-size: 12px; font-weight: 600; color: var(--accent-emerald); font-family: var(--font-mono); letter-spacing: 0.3px; }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-emerald); animation: pulseGlow 2s ease-in-out infinite; }
@keyframes pulseGlow { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.4); } 50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(16,185,129,0); } }
.icon-btn { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--bg-tertiary); border: 1px solid var(--border-default); color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.icon-btn:hover { border-color: var(--border-hover); color: var(--text-primary); background: var(--bg-elevated); }
.icon-btn svg { width: 18px; height: 18px; }
.mobile-menu-btn { display: none; }
.mobile-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg-glass); backdrop-filter: blur(24px); border-bottom: 1px solid var(--border-subtle); padding: 12px 20px; flex-direction: column; gap: 2px; }
.mobile-nav.open { display: flex; }

/* ---------- Layout ---------- */
.main { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.main-narrow { max-width: 860px; }

/* ---------- Hero ---------- */
.hero { padding: 100px 0 64px; text-align: center; position: relative; }
.hero.compact { padding: 56px 0 32px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 100px; background: var(--brand-primary-dim); border: 1px solid var(--border-brand); color: var(--brand-primary-light); font-size: 13px; font-weight: 600; margin-bottom: 32px; letter-spacing: 0.2px; }
.hero-eyebrow svg { width: 14px; height: 14px; color: var(--brand-primary); }
.hero h1 { font-size: clamp(40px,5.5vw,72px); font-weight: 900; line-height: 1.05; letter-spacing: -2px; margin-bottom: 24px; }
.hero.compact h1 { font-size: clamp(30px,4vw,46px); letter-spacing: -1.2px; margin-bottom: 16px; }
.hero h1 .gradient-text { background: linear-gradient(135deg, var(--text-primary) 0%, var(--brand-primary-light) 50%, var(--accent-blue) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: clamp(17px,2.2vw,21px); color: var(--text-secondary); max-width: 620px; margin: 0 auto 48px; line-height: 1.7; font-weight: 400; }
.hero.compact .hero-subtitle { margin-bottom: 8px; font-size: clamp(15px,1.8vw,18px); }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 20px; font-weight: 500; }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-primary-light); }

/* ---------- Buttons ---------- */
.btn-primary { display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark)); color: #fff; font-weight: 700; font-size: 15px; border: none; cursor: pointer; transition: all 0.25s cubic-bezier(0.4,0,0.2,1); box-shadow: 0 4px 20px var(--brand-primary-glow); letter-spacing: 0.2px; text-decoration: none; font-family: var(--font-sans); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--brand-primary-glow), 0 0 0 1px rgba(229,65,122,0.3); color: #fff; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary svg { width: 18px; height: 18px; }
.btn-secondary { display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px; border-radius: var(--radius-md); background: var(--bg-tertiary); color: var(--text-primary); font-weight: 600; font-size: 14px; border: 1px solid var(--border-default); cursor: pointer; transition: all 0.2s; text-decoration: none; font-family: var(--font-sans); }
.btn-secondary:hover { border-color: var(--border-hover); background: var(--bg-elevated); color: var(--text-primary); }
.btn-secondary svg { width: 16px; height: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-sm); }

/* ---------- Dropzone & quick access ---------- */
.quick-access { background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-2xl); padding: 48px; margin-bottom: 28px; box-shadow: var(--shadow-lg), var(--shadow-brand); position: relative; overflow: hidden; }
.quick-access::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1.5px; background: linear-gradient(90deg, transparent, var(--brand-primary), var(--accent-blue), transparent); opacity: 0.6; }
.dropzone { border: 2px dashed var(--border-default); border-radius: var(--radius-xl); padding: 72px 24px; text-align: center; cursor: pointer; transition: all 0.35s cubic-bezier(0.4,0,0.2,1); background: var(--bg-tertiary); position: relative; }
.dropzone.compact { padding: 48px 24px; }
.dropzone:hover, .dropzone.dragover { border-color: var(--brand-primary); background: var(--brand-primary-dim); box-shadow: inset 0 0 60px var(--brand-primary-dim); }
.dropzone-icon-wrap { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark)); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 32px var(--brand-primary-glow); }
.dropzone-icon-wrap svg { width: 32px; height: 32px; color: #fff; }
.dropzone h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.3px; }
.dropzone p { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

/* ---------- Tool selector chips (hero quick access) ---------- */
.tool-selector { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.tool-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 116px; min-height: 62px; padding: 10px 6px; background: var(--bg-tertiary); border: 1px solid var(--border-default); border-radius: var(--radius-md); color: var(--text-secondary); font-family: var(--font-sans); font-size: 11.5px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-align: center; cursor: pointer; transition: all 0.2s cubic-bezier(0.4,0,0.2,1); white-space: nowrap; }
.tool-chip svg { width: 18px; height: 18px; flex-shrink: 0; }
.tool-chip:hover { border-color: var(--border-hover); color: var(--text-primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.tool-chip.active { background: var(--brand-primary-dim); border-color: var(--border-brand); color: var(--brand-primary-light); box-shadow: 0 0 20px rgba(229,65,122,0.08); }

/* ---------- Stats ---------- */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0 72px; }
.stat-card { background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 24px 16px; text-align: center; transition: all 0.3s cubic-bezier(0.4,0,0.2,1); }
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-value { font-family: var(--font-mono); font-size: 30px; font-weight: 700; color: var(--brand-primary); margin-bottom: 6px; letter-spacing: -1px; }
.stat-label { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; }

/* ---------- Benefits grid (why choose) ---------- */
.benefits-section { padding: 8px 0 8px; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.benefit-card { background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 26px 24px; transition: all 0.3s cubic-bezier(0.4,0,0.2,1); }
.benefit-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.benefit-icon { width: 44px; height: 44px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; background: var(--brand-primary-dim); border: 1px solid var(--border-brand); color: var(--brand-primary-light); margin-bottom: 14px; }
.benefit-icon svg { width: 20px; height: 20px; }
.benefit-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.2px; }
.benefit-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

/* ---------- Compliance badges ---------- */
.compliance-section { padding: 72px 0; border-top: 1px solid var(--border-default); }
.compliance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.compliance-card { background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 32px 28px; text-align: center; transition: all 0.3s cubic-bezier(0.4,0,0.2,1); position: relative; overflow: hidden; }
.compliance-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2.5px; background: linear-gradient(90deg, var(--accent-emerald), var(--accent-blue)); opacity: 0; transition: opacity 0.3s; }
.compliance-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.compliance-card:hover::before { opacity: 1; }
.compliance-icon { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent-emerald-dim); border: 1px solid rgba(16,185,129,0.25); color: var(--accent-emerald); display: flex; align-items: center; justify-content: center; }
.compliance-icon svg { width: 32px; height: 32px; }
.compliance-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.2px; }
.compliance-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }

/* ---------- Sections & tool grids ---------- */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; padding-top: 56px; flex-wrap: wrap; gap: 12px; }
.section-title { font-size: 26px; font-weight: 800; letter-spacing: -0.6px; display: flex; align-items: center; gap: 12px; }
.section-title svg { width: 24px; height: 24px; color: var(--brand-primary); }
.section-count { font-size: 12px; color: var(--text-muted); font-weight: 600; background: var(--bg-tertiary); padding: 5px 14px; border-radius: 100px; border: 1px solid var(--border-default); }
.view-all { color: var(--brand-primary-light); font-size: 14px; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 4px; transition: gap 0.2s; }
.view-all:hover { gap: 8px; color: var(--brand-primary); }
.view-all svg { width: 16px; height: 16px; }
.cat-tabs { display: flex; gap: 6px; margin-bottom: 28px; flex-wrap: wrap; padding: 6px; background: var(--bg-secondary); border-radius: var(--radius-lg); border: 1px solid var(--border-default); width: fit-content; }
.cat-tab { padding: 8px 18px; border-radius: var(--radius-md); border: 1px solid transparent; background: transparent; color: var(--text-muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s cubic-bezier(0.4,0,0.2,1); display: flex; align-items: center; gap: 8px; font-family: var(--font-sans); }
.cat-tab:hover { color: var(--text-secondary); }
.cat-tab.active { background: var(--bg-elevated); color: var(--text-primary); box-shadow: var(--shadow-sm); border-color: var(--border-hover); }
.cat-tab .tab-dot { width: 7px; height: 7px; border-radius: 50%; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-bottom: 72px; }
.tool-card { background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 28px; transition: all 0.35s cubic-bezier(0.4,0,0.2,1); cursor: pointer; position: relative; overflow: hidden; text-decoration: none; color: inherit; display: block; }
.tool-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2.5px; background: linear-gradient(90deg, var(--brand-primary), var(--accent-blue)); opacity: 0; transition: opacity 0.35s; }
.tool-card:hover { border-color: var(--border-hover); transform: translateY(-5px); box-shadow: var(--shadow-lg), var(--shadow-brand); }
.tool-card:hover::before { opacity: 1; }
.tool-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tool-card-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; background: var(--bg-tertiary); border: 1px solid var(--border-default); transition: all 0.3s; }
.tool-card:hover .tool-card-icon { background: var(--brand-primary-dim); border-color: var(--border-brand); }
.tool-card-icon svg { width: 22px; height: 22px; }
.tool-card-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; padding: 4px 10px; border-radius: 6px; }
.badge-pdf { background: var(--brand-primary-dim); color: var(--brand-primary-light); }
.badge-image { background: var(--accent-blue-dim); color: var(--accent-blue); }
.badge-text { background: var(--accent-violet-dim); color: var(--accent-violet); }
.badge-dev { background: var(--accent-amber-dim); color: var(--accent-amber); }
.badge-privacy { background: var(--accent-emerald-dim); color: var(--accent-emerald); }
.badge-design { background: var(--accent-cyan-dim); color: var(--accent-cyan); }
.tool-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.2px; color: var(--text-primary); }
.tool-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.tool-card-meta { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); font-weight: 500; }
.tool-card-meta span { display: flex; align-items: center; gap: 5px; }
.tool-card-meta svg { width: 13px; height: 13px; }

/* ---------- Feature / privacy section ---------- */
.feature-section { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 72px 0; border-top: 1px solid var(--border-default); }
.feature-visual { background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-2xl); padding: 36px; position: relative; overflow: hidden; min-height: 340px; display: flex; flex-direction: column; justify-content: center; }
.feature-visual::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, var(--brand-primary-dim), transparent 70%); pointer-events: none; }
.privacy-demo { position: relative; z-index: 1; background: var(--bg-base); border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--border-default); font-family: var(--font-mono); font-size: 12.5px; box-shadow: var(--shadow-md); }
.privacy-demo .demo-line { display: flex; align-items: center; gap: 10px; padding: 5px 0; color: var(--text-muted); }
.privacy-demo .demo-line.ok { color: var(--accent-emerald); }
.privacy-demo .demo-line.ok svg { width: 14px; height: 14px; }
.privacy-demo .demo-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border-default); color: var(--brand-primary-light); font-weight: 600; font-size: 13px; }
.privacy-demo .demo-header svg { width: 14px; height: 14px; }
.feature-content h2 { font-size: 36px; font-weight: 900; letter-spacing: -1.2px; margin-bottom: 20px; line-height: 1.15; }
.feature-content p { color: var(--text-secondary); font-size: 17px; line-height: 1.75; margin-bottom: 28px; }
.feature-list { list-style: none; }
.feature-list li { display: flex; align-items: flex-start; gap: 14px; padding: 11px 0; color: var(--text-secondary); font-size: 15.5px; }
.feature-list li .check { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-emerald-dim); color: var(--accent-emerald); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.feature-list li .check svg { width: 13px; height: 13px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--brand-primary-light); font-size: 14.5px; font-weight: 600; text-decoration: none; transition: color 0.2s ease, gap 0.2s ease; }
.text-link svg { width: 15px; height: 15px; flex-shrink: 0; }
.text-link:hover { color: var(--brand-primary); gap: 12px; }
.faq-more { text-align: center; margin-top: 30px; }

/* ---------- Timeline ---------- */
.timeline-section { padding: 72px 0; border-top: 1px solid var(--border-default); }
.timeline { display: flex; gap: 32px; position: relative; }
.timeline::before { content: ''; position: absolute; top: 32px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--brand-primary), var(--accent-blue), var(--accent-violet)); opacity: 0.25; }
.timeline-step { flex: 1; text-align: center; position: relative; z-index: 1; }
.step-number { width: 64px; height: 64px; border-radius: 50%; background: var(--bg-secondary); border: 2px solid var(--border-default); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--brand-primary); margin: 0 auto 20px; transition: all 0.35s cubic-bezier(0.4,0,0.2,1); cursor: default; box-shadow: var(--shadow-sm); }
.timeline-step:hover .step-number { border-color: var(--brand-primary); box-shadow: 0 0 24px var(--brand-primary-glow); transform: scale(1.08); }
.timeline-step h4 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.timeline-step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq-section { padding: 72px 0; border-top: 1px solid var(--border-default); }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-lg); margin-bottom: 12px; overflow: hidden; transition: all 0.3s; }
.faq-item:hover { border-color: var(--border-hover); }
.faq-question { padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 600; font-size: 15.5px; gap: 16px; }
.faq-question .faq-toggle { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all 0.3s cubic-bezier(0.4,0,0.2,1); flex-shrink: 0; border: 1px solid var(--border-default); }
.faq-question .faq-toggle svg { width: 14px; height: 14px; }
.faq-item.open .faq-toggle { transform: rotate(180deg); color: var(--brand-primary); border-color: var(--border-brand); background: var(--brand-primary-dim); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1); padding: 0 28px; }
.faq-item.open .faq-answer { max-height: 480px; padding: 0 28px 24px; }
.faq-answer p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.75; }

/* ---------- CTA ---------- */
.cta-section { padding: 100px 0; text-align: center; position: relative; border-top: 1px solid var(--border-default); }
.cta-box { background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-2xl); padding: 72px 48px; position: relative; overflow: hidden; box-shadow: var(--shadow-lg), var(--shadow-brand); }
.cta-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1.5px; background: linear-gradient(90deg, transparent, var(--brand-primary), var(--accent-blue), transparent); }
.cta-box h2 { font-size: 40px; font-weight: 900; margin-bottom: 18px; letter-spacing: -1.2px; }
.cta-box p { color: var(--text-secondary); font-size: 19px; margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border-default); padding: 72px 0 48px; margin-top: 48px; position: relative; z-index: 1; background: var(--bg-primary); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(5, 1fr); gap: 40px; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin-top: 14px; max-width: 280px; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--text-secondary); text-decoration: none; font-size: 14px; padding: 7px 0; transition: all 0.2s; }
.footer-col a:hover { color: var(--brand-primary-light); }
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-links a { width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--bg-tertiary); border: 1px solid var(--border-default); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; transition: all 0.2s; text-decoration: none; }
.social-links a:hover { border-color: var(--border-brand); color: var(--brand-primary-light); background: var(--brand-primary-dim); transform: translateY(-2px); }
.social-links svg { width: 17px; height: 17px; }
.footer-bottom { max-width: 1280px; margin: 48px auto 0; padding: 24px 24px 0; border-top: 1px solid var(--border-default); display: flex; align-items: center; justify-content: space-between; color: var(--text-muted); font-size: 13px; flex-wrap: wrap; gap: 12px; }
.footer-bottom .status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-emerald); display: inline-block; margin-right: 6px; animation: pulseGlow 2s ease-in-out infinite; }
.footer-bottom a { color: var(--text-muted); text-decoration: none; margin-left: 16px; }
.footer-bottom a:hover { color: var(--brand-primary-light); }

/* ---------- Tool page shell ---------- */
.tool-shell { background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-2xl); padding: 40px; margin: 24px 0 48px; box-shadow: var(--shadow-lg), var(--shadow-brand); position: relative; overflow: hidden; }
.tool-shell::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1.5px; background: linear-gradient(90deg, transparent, var(--brand-primary), var(--accent-blue), transparent); opacity: 0.6; }
.file-list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.file-item { display: flex; align-items: center; gap: 14px; background: var(--bg-tertiary); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 12px 16px; font-size: 14px; }
.file-item .fi-name { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .fi-size { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.file-item .fi-actions { display: flex; gap: 6px; }
.fi-btn { width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--bg-secondary); border: 1px solid var(--border-default); color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; font-family: var(--font-mono); font-size: 12px; }
.fi-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.fi-btn.danger:hover { border-color: rgba(239,68,68,0.4); color: #EF4444; background: rgba(239,68,68,0.1); }
.fi-btn svg { width: 14px; height: 14px; }
.tool-controls { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin: 24px 0; padding: 24px; background: var(--bg-tertiary); border: 1px solid var(--border-default); border-radius: var(--radius-lg); }
.control-group { display: flex; flex-direction: column; gap: 8px; }
.control-group label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); }
.control-group input[type="text"], .control-group input[type="number"], .control-group input[type="password"], .control-group input[type="email"], .control-group input[type="date"], .control-group select, .control-group textarea {
  background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-sm); color: var(--text-primary); padding: 10px 14px; font-size: 14px; font-family: var(--font-sans); outline: none; transition: border-color 0.2s; min-width: 180px;
}
.control-group textarea { font-family: var(--font-mono); font-size: 13px; resize: vertical; min-height: 120px; width: 100%; }
.control-group input:focus, .control-group select:focus, .control-group textarea:focus { border-color: var(--border-brand); }
.control-group input[type="range"] { accent-color: var(--brand-primary); min-width: 180px; }
/* ---------- Generator forms (invoice / resume builders) ---------- */
.gen-form { display: flex; flex-direction: column; gap: 18px; width: 100%; }
.gen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.gen-grid .control-group input, .gen-grid .control-group select, .gen-grid .control-group textarea { width: 100%; min-width: 0; }
.gen-form > .control-group input, .gen-form > .control-group textarea { width: 100%; }
.line-items { display: flex; flex-direction: column; gap: 10px; }
.li-row { position: relative; display: grid; grid-template-columns: 1fr 90px 110px 30px; gap: 10px; align-items: center; padding: 12px; background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-md); }
.li-row.li-block { grid-template-columns: 1fr; }
.li-grid { display: grid; grid-template-columns: 1fr 1fr 140px; gap: 10px; }
.li-row input, .li-row textarea {
  background: var(--bg-tertiary); border: 1px solid var(--border-default); border-radius: var(--radius-sm); color: var(--text-primary); padding: 9px 12px; font-size: 13.5px; font-family: var(--font-sans); outline: none; transition: border-color 0.2s; width: 100%; min-width: 0;
}
.li-row textarea { resize: vertical; min-height: 64px; margin-top: 10px; }
.li-row input:focus, .li-row textarea:focus { border-color: var(--border-brand); }
.li-row .fi-btn { position: absolute; top: 10px; right: 10px; }
.li-row.li-block { padding-right: 48px; }
.gen-form .btn-secondary { align-self: flex-start; padding: 9px 18px; font-size: 13px; }
/* ---------- Template download pages ---------- */
.tpl-download { margin: 8px 0 40px; }
.tpl-download-card { max-width: 720px; margin: 0 auto; padding: 40px 32px; text-align: center; background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-2xl); box-shadow: var(--shadow-lg), var(--shadow-brand); }
.tpl-dl-btn { font-size: 16px; padding: 16px 32px; }
.tpl-dl-btn svg { width: 18px; height: 18px; }
.tpl-download-card .tool-status { justify-content: center; margin-top: 16px; }
.tpl-points { list-style: none; margin: 28px auto 0; padding: 0; max-width: 480px; text-align: left; display: flex; flex-direction: column; gap: 12px; }
.tpl-points li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text-secondary); line-height: 1.5; }
.tpl-points li svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; color: var(--accent-emerald); }
.tpl-note { margin-top: 22px; font-size: 12.5px; color: var(--text-muted); }
@media (max-width: 640px) {
  .li-row { grid-template-columns: 1fr; }
  .li-grid { grid-template-columns: 1fr; }
  .li-row .li-desc { padding-right: 40px; }
}
.tool-status { margin-top: 20px; padding: 14px 18px; border-radius: var(--radius-md); font-size: 14px; display: none; align-items: center; gap: 10px; }
.tool-status.show { display: flex; }
.tool-status.info { background: var(--accent-blue-dim); border: 1px solid rgba(59,130,246,0.25); color: var(--accent-blue); }
.tool-status.success { background: var(--accent-emerald-dim); border: 1px solid rgba(16,185,129,0.25); color: var(--accent-emerald); }
.tool-status.error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #F87171; }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin: 20px 0; }
.thumb-card { background: var(--bg-tertiary); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 10px; text-align: center; position: relative; cursor: grab; transition: all 0.2s; user-select: none; }
.thumb-card:hover { border-color: var(--border-hover); }
.thumb-card.selected { border-color: var(--brand-primary); box-shadow: 0 0 0 1px var(--brand-primary); }
.thumb-card.dragover { border-color: var(--accent-blue); border-style: dashed; }
.thumb-card canvas, .thumb-card img { width: 100%; height: auto; border-radius: 6px; background: #fff; display: block; }
.thumb-card .thumb-num { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-top: 8px; display: flex; justify-content: center; gap: 6px; align-items: center; }
.thumb-card .thumb-actions { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
.result-panel { margin-top: 24px; padding: 28px; background: var(--bg-tertiary); border: 1px solid rgba(16,185,129,0.25); border-radius: var(--radius-lg); text-align: center; display: none; }
.result-panel.show { display: block; }
.result-panel h3 { color: var(--accent-emerald); margin-bottom: 8px; font-size: 18px; }
.result-panel p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

/* ---------- SEO content blocks ---------- */
.seo-block { max-width: 860px; margin: 0 auto; padding: 56px 0; }
.seo-block h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.8px; margin: 40px 0 16px; }
.seo-block h2:first-child { margin-top: 0; }
.seo-block h3 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
.seo-block p { color: var(--text-secondary); font-size: 15.5px; line-height: 1.8; margin-bottom: 16px; }
.seo-block ul, .seo-block ol { color: var(--text-secondary); margin: 0 0 16px 24px; line-height: 1.8; font-size: 15.5px; }
.seo-block li { margin-bottom: 6px; }
.seo-block a { color: var(--brand-primary-light); text-decoration: none; }
.seo-block a:hover { text-decoration: underline; }
.seo-block strong { color: var(--text-primary); }
.seo-block table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.seo-block th, .seo-block td { padding: 12px 16px; border: 1px solid var(--border-default); text-align: left; }
.seo-block th { background: var(--bg-tertiary); font-weight: 600; }
.seo-block code { font-family: var(--font-mono); font-size: 13px; background: var(--bg-tertiary); border: 1px solid var(--border-default); padding: 2px 7px; border-radius: 6px; color: var(--brand-primary-light); }
.seo-block pre { background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 20px; overflow-x: auto; margin: 16px 0; }
.seo-block pre code { background: none; border: none; padding: 0; color: var(--text-secondary); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin: 32px 0 64px; }
.post-card { background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.35s cubic-bezier(0.4,0,0.2,1); text-decoration: none; color: inherit; display: flex; flex-direction: column; position: relative; }
.post-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2.5px; background: linear-gradient(90deg, var(--brand-primary), var(--accent-blue)); opacity: 0; transition: opacity 0.35s; z-index: 1; }
.post-card:hover { border-color: var(--border-hover); transform: translateY(-5px); box-shadow: var(--shadow-lg), var(--shadow-brand); }
.post-card:hover::before { opacity: 1; }
.post-card .post-banner { height: 160px; background: linear-gradient(135deg, var(--brand-primary-dim), var(--accent-blue-dim)); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border-default); }
.post-card .post-banner svg { width: 52px; height: 52px; color: var(--brand-primary); opacity: 0.85; }
.post-card .post-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); margin-bottom: 12px; }
.post-cat { padding: 3px 10px; border-radius: 100px; background: var(--brand-primary-dim); color: var(--brand-primary-light); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.post-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 10px; color: var(--text-primary); line-height: 1.4; }
.post-card .post-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.7; flex: 1; margin-bottom: 18px; }
.post-card .read-more { color: var(--brand-primary-light); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.post-card .read-more svg { width: 14px; height: 14px; transition: transform 0.2s; }
.post-card:hover .read-more svg { transform: translateX(4px); }
.article { max-width: 780px; margin: 0 auto; padding: 24px 0 64px; }
.article h1 { font-size: clamp(30px,4vw,44px); font-weight: 900; letter-spacing: -1.4px; line-height: 1.15; margin-bottom: 20px; }
.article .article-meta { display: flex; align-items: center; gap: 14px; color: var(--text-muted); font-size: 13px; font-family: var(--font-mono); margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--border-default); flex-wrap: wrap; }
.article h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.6px; margin: 44px 0 16px; }
.article h3 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; }
.article p { color: var(--text-secondary); font-size: 16.5px; line-height: 1.85; margin-bottom: 18px; }
.article ul, .article ol { color: var(--text-secondary); margin: 0 0 18px 24px; line-height: 1.85; font-size: 16.5px; }
.article li { margin-bottom: 8px; }
.article a { color: var(--brand-primary-light); text-decoration: none; }
.article a:hover { text-decoration: underline; }
.article strong { color: var(--text-primary); }
.article blockquote { border-left: 3px solid var(--brand-primary); background: var(--brand-primary-dim); padding: 18px 24px; border-radius: 0 var(--radius-md) var(--radius-md) 0; margin: 24px 0; color: var(--text-secondary); font-style: italic; }
.article code { font-family: var(--font-mono); font-size: 14px; background: var(--bg-tertiary); border: 1px solid var(--border-default); padding: 2px 7px; border-radius: 6px; }
.article pre { background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 20px; overflow-x: auto; margin: 20px 0; }
.article pre code { background: none; border: none; padding: 0; }
.article table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14.5px; }
.article th, .article td { padding: 12px 16px; border: 1px solid var(--border-default); text-align: left; color: var(--text-secondary); }
.article th { background: var(--bg-tertiary); color: var(--text-primary); font-weight: 600; }

/* ---------- Forms (contact) ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid textarea, .form-grid select { width: 100%; background: var(--bg-tertiary); border: 1px solid var(--border-default); border-radius: var(--radius-md); color: var(--text-primary); padding: 14px 16px; font-size: 14.5px; font-family: var(--font-sans); outline: none; transition: border-color 0.2s; }
.form-grid textarea { min-height: 160px; resize: vertical; }
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { border-color: var(--border-brand); }
.form-grid ::placeholder { color: var(--text-muted); }

/* ---------- Misc ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tag { padding: 6px 14px; border-radius: 100px; background: var(--bg-tertiary); border: 1px solid var(--border-default); color: var(--text-secondary); font-size: 12.5px; font-weight: 500; text-decoration: none; transition: all 0.2s; }
.tag:hover { border-color: var(--border-brand); color: var(--brand-primary-light); background: var(--brand-primary-dim); }
.divider { border: none; border-top: 1px solid var(--border-default); margin: 48px 0; }
.text-center { text-align: center; }
.mono { font-family: var(--font-mono); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInUp 0.7s cubic-bezier(0.4,0,0.2,1) forwards; }
.reveal { opacity: 0; transform: translateY(32px); transition: all 0.7s cubic-bezier(0.4,0,0.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .feature-section { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .timeline { flex-direction: column; }
  .timeline::before { display: none; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .compliance-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 768px) {
  .header-inner { padding: 0 16px; height: 60px; }
  .nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .privacy-pill { display: none; }
  .mobile-nav { top: 60px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 56px 0 40px; }
  .quick-access, .tool-shell { padding: 28px 20px; }
  .cta-box { padding: 48px 28px; }
  .cta-box h2 { font-size: 28px; }
  .feature-content h2 { font-size: 28px; }
  .dropzone { padding: 48px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .tool-controls { flex-direction: column; align-items: stretch; }
}
