:root {
  --bg: #f8f7fc;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --text: #141124;
  --text-soft: #3d3852;
  --muted: #6e6a82;
  --accent: #6c4cff;
  --accent-2: #8b5cf6;
  --accent-soft: #f0ecff;
  --strip-bg: linear-gradient(90deg, #f3efff 0%, #ebe5ff 100%);
  --border: #e9e6f5;
  --danger: #dc2626;
  --success: #059669;
  --shadow-sm: 0 2px 10px rgba(24, 16, 66, 0.04);
  --shadow-md: 0 18px 40px -14px rgba(48, 28, 120, 0.12);
  --radius: 18px;
}

:root[data-theme="dark"] {
  --bg: #0c0a17;
  --bg-elevated: #151226;
  --card: #19152e;
  --text: #f4f3ff;
  --text-soft: #d5d2ea;
  --muted: #9b96b8;
  --accent: #8266ff;
  --accent-2: #a855f7;
  --accent-soft: rgba(130, 102, 255, 0.16);
  --strip-bg: linear-gradient(90deg, #1b1633 0%, #231c42 100%);
  --border: #2a2445;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 18px 40px -14px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* The hidden attribute must beat component display rules like .grid. */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: "Inter", "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 22px;
}

.main-content {
  flex: 1;
  padding-top: 16px;
  padding-bottom: 40px;
}

/* Floating Pill Header */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 60;
  padding: 0 22px;
  margin-top: 14px;
}

.top {
  max-width: 1100px;
  margin: 0 auto;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  padding: 8px 18px;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.025em;
  color: var(--text);
  text-decoration: none;
}

.logo strong {
  color: var(--text);
}

#main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

#main-nav > a,
.nav-drop-btn {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  margin: 0;
  box-shadow: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

#main-nav > a:hover,
.nav-drop-btn:hover {
  color: var(--accent);
  background: var(--accent-soft);
  transform: none;
  box-shadow: none;
}

#main-nav > a.active,
.nav-drop-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(108, 76, 255, 0.28);
}

.nav-dropdown { position: relative; }
.caret { font-size: 0.75rem; transition: transform 0.15s ease; }
.nav-dropdown.open .caret { transform: rotate(180deg); }

.nav-drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 92vw);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow-md);
  z-index: 100;
}

.nav-dropdown.open .nav-drop-menu { display: block; }
@media (hover: hover) {
  .nav-dropdown:hover .nav-drop-menu { display: block; }
}

.drop-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.drop-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding: 4px 10px 6px;
}

.drop-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.drop-footer a {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 999px;
}

.drop-footer a:hover {
  background: var(--accent-soft);
}

.drop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  white-space: normal;
}

.drop-item:hover,
.drop-item.active {
  background: var(--accent-soft);
  color: var(--text);
  box-shadow: none;
}

.drop-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}

.drop-item strong { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text); line-height: 1.25; }
.drop-item small { display: block; font-size: 0.76rem; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 8px; }

/* Segmented Sun / Moon Theme Switch */
.theme-switch {
  display: inline-flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  cursor: pointer;
  margin: 0;
  box-shadow: none;
}

.theme-switch:hover { transform: none; box-shadow: none; }

.theme-switch span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  transition: background 0.15s ease, color 0.15s ease;
}

:root:not([data-theme="dark"]) .theme-switch .ts-sun {
  background: #ffffff;
  color: #f59e0b;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

:root[data-theme="dark"] .theme-switch .ts-moon {
  background: var(--accent);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px;
  margin: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: none;
}

.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  #main-nav {
    display: none;
    width: 100%;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0 6px;
    border-top: 1px solid var(--border);
  }
  #main-nav.open { display: flex; }
  .nav-drop-menu { position: static; transform: none; width: 100%; max-height: 60vh; overflow-y: auto; box-shadow: none; margin-top: 4px; }
  .drop-groups { grid-template-columns: 1fr; }
  .top { flex-wrap: wrap; }
}

/* Hero Banner */
.hero-wrap {
  background: radial-gradient(circle at 80% 25%, rgba(168, 85, 247, 0.22), transparent 50%),
              radial-gradient(circle at 15% 15%, rgba(108, 76, 255, 0.14), transparent 45%),
              linear-gradient(180deg, rgba(240, 236, 255, 0.65) 0%, var(--bg) 100%);
  border-radius: 28px;
  padding: clamp(28px, 4.5vw, 48px);
  margin-bottom: 36px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

:root[data-theme="dark"] .hero-wrap {
  background: radial-gradient(circle at 80% 25%, rgba(168, 85, 247, 0.22), transparent 50%),
              linear-gradient(180deg, #181330 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 18px;
  align-items: center;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.grad-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p.sub {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-actions .btn { margin: 0; }

/* Hero Visual Card */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
}

.hero-img {
  width: 108%;
  max-width: 600px;
  height: auto;
  display: block;
  transform: scale(1.06);
  filter: drop-shadow(0 20px 36px rgba(88, 56, 180, 0.2));
}

.hv-player {
  width: 100%;
  max-width: 380px;
  background: #171429;
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 24px 50px -12px rgba(59, 34, 150, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.85);
  transform: rotate(2deg);
  position: relative;
}

.hv-screen {
  border-radius: 14px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #312e81 0%, #6d28d9 45%, #f59e0b 100%);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.hv-play {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.hv-bar {
  margin-top: 10px;
  height: 6px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  position: relative;
}

.hv-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 55%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8167ff, #ec4899);
}

.hv-float {
  position: absolute;
  border-radius: 14px;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(20, 15, 50, 0.22);
  font-weight: 800;
  color: #fff;
}

.hv-yt { width: 52px; height: 38px; background: #ef4444; top: -8px; right: 12px; transform: rotate(8deg); font-size: 1rem; }
.hv-tt { width: 44px; height: 44px; background: #111827; top: 48px; right: -12px; transform: rotate(10deg); font-size: 1.1rem; }
.hv-ig { width: 46px; height: 46px; background: linear-gradient(135deg, #f59e0b, #ec4899, #8b5cf6); bottom: 26px; right: -4px; transform: rotate(-6deg); font-size: 1.1rem; }
.hv-clap { width: 58px; height: 52px; background: linear-gradient(135deg, #6c4cff, #a855f7); bottom: -8px; left: -12px; transform: rotate(-10deg); font-size: 1.3rem; border: 2px solid #fff; }

/* Section Headers */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.section-head-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sec-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(108, 76, 255, 0.25);
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.section-sub {
  margin: 2px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.pill-link:hover { border-color: var(--accent); color: var(--accent); }

/* 3-Column Horizontal-Split Tool Cards */
.tools-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 980px) { .tools-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tools-grid-3 { grid-template-columns: 1fr; } }

.tool-card-split {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 104px;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tool-card-split:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.tc-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tc-mini-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.tc-body h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.25;
}

.tc-body p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.45;
}

.tc-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

.tc-art {
  width: 104px;
  height: 92px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 8px;
}

/* Why Use ZedClip Strip */
.why-strip {
  margin-top: 34px;
  background: var(--strip-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px 26px;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  gap: 20px;
  align-items: center;
}

@media (max-width: 900px) {
  .why-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .why-strip { grid-template-columns: 1fr; }
}

.why-lead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 16px;
  border-right: 1px solid var(--border);
}

@media (max-width: 900px) { .why-lead { border-right: 0; padding-right: 0; } }

.why-lead-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--card);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.why-lead h2 { margin: 0; font-size: 1.1rem; line-height: 1.2; }
.why-lead p { margin: 2px 0 0; font-size: 0.82rem; color: var(--muted); }

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.why-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-item strong { display: block; font-size: 0.9rem; line-height: 1.25; }
.why-item span { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

/* FAQ 2-Column Section */
.faq-section { margin-top: 42px; }

.faq-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 28px;
  align-items: center;
}

@media (max-width: 780px) { .faq-grid { grid-template-columns: 1fr; } }

.faq-art {
  display: grid;
  place-items: center;
  padding: 16px;
}

.faq-list { display: grid; gap: 10px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.25rem; color: var(--accent); font-weight: 700; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 10px 0 0; color: var(--muted); font-size: 0.9rem; }

/* Tool Panels, Forms & Prose (Tool & Legal Pages) */
.page-hero {
  background: radial-gradient(circle at 88% 20%, rgba(168, 85, 247, 0.2), transparent 48%),
              radial-gradient(circle at 12% 10%, rgba(108, 76, 255, 0.12), transparent 42%),
              linear-gradient(180deg, rgba(240, 236, 255, 0.72) 0%, var(--card) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px 28px 26px;
  margin: 12px 0 22px;
  box-shadow: var(--shadow-sm);
}

:root[data-theme="dark"] .page-hero {
  background: radial-gradient(circle at 88% 20%, rgba(168, 85, 247, 0.22), transparent 48%),
              linear-gradient(180deg, #1b1536 0%, var(--card) 100%);
}

.page-hero-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.page-hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  flex-shrink: 0;
}

.page-hero h1 {
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  margin: 0 0 6px;
}

.crumbs-wrap { margin: 2px 0 16px; }
.breadcrumbs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  margin: 0;
}

.breadcrumbs span[aria-hidden] { color: var(--muted); opacity: 0.55; }

.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .bc-current { color: var(--text-soft); }

@media (max-width: 560px) {
  .page-hero { padding: 18px 20px 22px; }
  .page-hero-row { align-items: flex-start; gap: 12px; }
  .page-hero-icon { width: 46px; height: 46px; font-size: 1.35rem; }
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 18px 0;
  box-shadow: var(--shadow-sm);
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  margin: 14px 0 6px;
}

.panel > label:first-child { margin-top: 0; }

input[type=text],
input[type=email],
input[type=number],
input[type=search],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.96rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

input[type=color] {
  width: 100%;
  height: 46px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
}

input[type=range] { width: 100%; accent-color: var(--accent); cursor: pointer; }

.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > * { flex: 1 1 160px; }

/* Tools filter */
.tool-filter-panel { padding: 22px; margin-bottom: 22px; background: linear-gradient(180deg, var(--card), rgba(108,76,255,.03)); }
.tool-filter-row { display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 16px; align-items: end; }
.filter-field label { margin: 0 0 8px; font-size: .82rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.input-icon-wrap, .select-wrap { position: relative; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.input-lg { height: 52px; font-size: .98rem !important; border-radius: 14px !important; background: var(--card) !important; border-color: rgba(108,76,255,.18) !important; box-shadow: 0 1px 2px rgba(16,24,40,.02), inset 0 1px 0 rgba(255,255,255,.6); }
.input-icon-wrap .input-lg { padding-left: 44px; padding-right: 14px; }
.input-lg:hover { border-color: rgba(108,76,255,.35) !important; }
.input-lg:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 4px rgba(108,76,255,.12) !important; }
.select-wrap .input-lg { appearance: none; -webkit-appearance: none; padding: 0 44px 0 14px; cursor: pointer; font-weight: 600; color: var(--text); }
.select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; transition: border-color .15s; }
.select-wrap:focus-within::after { border-color: var(--accent); }
@media (max-width: 720px) { .tool-filter-row { grid-template-columns: 1fr; } .filter-field-cat { max-width: 100%; } }

button, .btn {
  padding: 11px 22px;
  font-size: 0.94rem;
  font-weight: 600;
  font-family: inherit;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 8px 0 0;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 18px rgba(108, 76, 255, 0.28);
}

button:hover, .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(108, 76, 255, 0.35); }

.btn-sec {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-sec:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); box-shadow: none; }
button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.error { color: var(--danger); font-weight: 500; margin: 10px 0 0; }
.success-msg { color: var(--success); font-weight: 500; margin: 10px 0 0; }

.out { display: flex; gap: 8px; margin: 4px 0 12px; }
.out input { flex: 1; min-width: 0; }
.out button { margin: 0; padding: 10px 18px; font-size: 0.88rem; }

video, canvas {
  max-width: 100%;
  border-radius: 14px;
  display: block;
  margin-top: 16px;
  border: 1px solid var(--border);
}

iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; margin-top: 10px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.card img { width: 100%; height: auto; border-radius: 10px; display: block; }
.card h3 { font-size: 1.02rem; margin: 12px 0 6px; }
a.tool { display: flex; flex-direction: column; color: var(--text); text-decoration: none; transition: transform 0.16s ease, border-color 0.16s ease; }
a.tool:hover { transform: translateY(-3px); border-color: var(--accent); }
.tool-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; font-size: 1.25rem; margin-bottom: 4px; }
.drop-icon svg, .tc-mini-icon svg, .tool-icon svg, .page-hero-icon svg { width: 58%; height: 58%; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.tool p { margin: 0 0 12px; color: var(--muted); font-size: 0.9rem; flex: 1; }
.tool-cta { font-size: 0.85rem; font-weight: 600; color: var(--accent); }

.section-block { margin-top: 40px; }

.how, .prose {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 28px;
  color: var(--text-soft);
}

.how h2, .prose h2 { color: var(--text); font-size: 1.22rem; margin: 22px 0 10px; }
.how h2:first-child, .prose h2:first-child { margin-top: 0; }
.how p, .prose p, .how li, .prose li { color: var(--text-soft); font-size: 0.95rem; }
.how ol, .how ul, .prose ul, .prose ol { padding-left: 20px; margin: 8px 0 14px; }
.how li + li, .prose li + li { margin-top: 6px; }

/* Long-form article typography */
.prose { line-height: 1.7; }
.prose h3 { color: var(--text); font-size: 1.05rem; margin: 20px 0 8px; }
.prose h2 + h3 { margin-top: 12px; }
.prose a { color: var(--accent); font-weight: 500; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--text); }
.prose code { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 1px 5px; font-size: 0.86em; }
.prose pre { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; overflow-x: auto; margin: 16px 0; }
.prose pre code { background: none; border: 0; padding: 0; font-size: 0.84rem; line-height: 1.6; }
.prose .table-wrap { overflow-x: auto; margin: 16px 0; border-radius: 12px; border: 1px solid var(--border); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--card); }
.prose th, .prose td { padding: 10px 13px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--bg); color: var(--text); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.02em; }
.prose tr:last-child td { border-bottom: 0; }
.prose blockquote { margin: 16px 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; color: var(--text-soft); }
.prose blockquote p { margin: 0; }
.prose figure { margin: 24px 0; }
.prose figure img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.prose figcaption { margin-top: 8px; font-size: 0.82rem; line-height: 1.5; color: var(--muted); }
.prose .figure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 24px 0; }
.prose .figure-grid figure { margin: 0; }
.prose figure.portrait { text-align: center; }
.prose figure.portrait img { max-width: 340px; margin-left: auto; margin-right: auto; }
.prose figure.portrait figcaption { max-width: 440px; margin-left: auto; margin-right: auto; }
.callout { margin: 16px 0; padding: 14px 16px; border: 1px solid var(--border); border-left: 3px solid var(--accent); background: var(--bg); border-radius: 0 12px 12px 0; font-size: 0.92rem; }
.callout strong { display: block; margin-bottom: 4px; }

/* Article header + FAQ */
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0 0 18px; font-size: 0.82rem; color: var(--muted); }
.post-meta .dot { opacity: 0.5; }
.post-faq { margin-top: 18px; }
.post-faq h2 { font-size: 1.22rem; margin: 0 0 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; background: var(--card); margin-bottom: 10px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 13px 16px; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 16px 14px; margin: 0; font-size: 0.93rem; color: var(--text-soft); }

/* Dropzone */
.dropzone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  background: var(--bg);
  transition: border-color 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.dropzone.dragover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; padding: 0; border: 0; }
.dropzone-title { font-weight: 600; color: var(--text); margin: 0 0 4px; }
.dropzone-sub { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* Dark Curved-Wave Footer */
.footer-wave {
  display: block;
  width: 100%;
  height: 54px;
  margin-top: 32px;
}

.site-footer {
  background: #130f26;
  color: #d6d2ea;
  padding: 36px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.9fr 1.35fr;
  gap: 28px;
}

@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .logo { color: #ffffff; }
.footer-brand .logo strong { color: #ffffff; }
.footer-brand p { color: #a7a2c4; font-size: 0.86rem; margin: 12px 0 16px; max-width: 280px; }

.social-row { display: flex; gap: 8px; }
.social-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  text-decoration: none;
}
.social-dot:hover { background: var(--accent); border-color: var(--accent); }

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer-col a { color: #b6b1d4; text-decoration: none; font-size: 0.85rem; }
.footer-col a:hover { color: #ffffff; }

.footer-sub-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px;
}

.footer-sub-box h4 {
  margin: 0 0 4px;
  font-size: 0.96rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-sub-box p { margin: 0 0 12px; font-size: 0.82rem; color: #b6b1d4; }

.sub-form { display: flex; gap: 8px; }
.sub-form input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 10px;
  border: 0;
  background: #ffffff;
  color: #141124;
  font-size: 0.85rem;
}
.sub-form button {
  margin: 0;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  box-shadow: none;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #9690b5;
  font-size: 0.82rem;
}
.footer-bottom p { margin: 0; }

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 780px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 0.86rem; color: var(--text-soft); flex: 1 1 320px; }
.cookie-banner a { color: var(--accent); }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions button { margin: 0; padding: 8px 14px; font-size: 0.84rem; }

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #130f26;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 300;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}
