:root {
  color-scheme: light;
  --ink: #1f2937;
  --muted: #667085;
  --line: #eadfce;
  --soft: #fff8ee;
  --accent: #e5ae55;
  --accent-dark: #c98b2d;
  --accent-soft: #fff1d8;
  --green: #c98b2d;
  --blue: #c98b2d;
  --amber: #a86f20;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; }
body:not(.tool-view) .tool-page { display: none; }
body.tool-view main > section:not(.tool-page) { display: none; }
body.tool-view .tool-page {
  display: block;
  min-height: calc(100vh - 64px);
  padding-top: 56px;
}
body.tool-view:not(.has-files) .breadcrumbs { display: none; }
body.tool-view.has-files .upload-zone { min-height: 360px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
}
.nav { display: flex; gap: 18px; color: var(--muted); font-weight: 650; }
.nav button {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-weight: 650;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  min-height: 520px;
  padding: clamp(42px, 8vw, 96px) clamp(18px, 4vw, 52px) 34px;
  background:
    linear-gradient(120deg, rgba(229, 174, 85, 0.15), transparent 42%),
    linear-gradient(0deg, #fff, var(--soft));
}

.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: clamp(52px, 8vw, 92px); line-height: .92; letter-spacing: 0; }
h2 { margin-bottom: 10px; font-size: clamp(28px, 4vw, 42px); line-height: 1.05; letter-spacing: 0; }
h3 { margin-bottom: 8px; font-size: 18px; letter-spacing: 0; }
.hero-copy p:not(.eyebrow) { max-width: 700px; color: var(--muted); font-size: 20px; line-height: 1.6; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.primary-btn, .ghost-btn, .run-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
}
.primary-btn, .run-btn { color: #fff; background: var(--accent); }
.primary-btn:hover, .run-btn:hover { background: var(--accent-dark); }
.ghost-btn { color: var(--ink); border-color: var(--line); background: #fff; }

.quick-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(31, 41, 55, .08);
}
.quick-panel button {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  cursor: pointer;
  font-weight: 750;
  text-align: left;
  padding: 0 16px;
}

.tools-section, .workspace, .privacy { padding: 48px clamp(18px, 4vw, 52px); }
.section-head, .workspace-head, .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.search { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 750; }
.search input {
  width: min(420px, 70vw);
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
}

.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0; }
.tab {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 9px 14px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 750;
}
.tab.active { color: #fff; border-color: var(--accent); background: var(--accent); }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.tool-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  min-height: 126px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.tool-card:hover { border-color: rgba(229, 174, 85, .65); box-shadow: 0 12px 28px rgba(31, 41, 55, .08); }
.tool-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 900; }
.tool-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.tool-card h3 { margin-bottom: 5px; font-size: 16px; }
.badge { display: inline-flex; margin-top: 8px; color: var(--green); font-size: 12px; font-weight: 800; }

.workspace { background: var(--soft); }
.tool-page {
  border-top: 1px solid var(--line);
}
.tool-view .workspace {
  background:
    radial-gradient(circle at 18% 18%, rgba(229, 174, 85, .16), transparent 30%),
    linear-gradient(180deg, #fffaf1 0%, #f8f8f8 100%);
}
.tool-view:not(.has-files) .workspace-head {
  display: grid;
  justify-content: center;
  text-align: center;
}
.tool-view:not(.has-files) .workspace-head > div {
  max-width: 780px;
}
.tool-view:not(.has-files) .workspace-head .eyebrow,
.tool-view:not(.has-files) .status-pill { display: none; }
.tool-view:not(.has-files) #activeToolName {
  margin-bottom: 12px;
  font-size: clamp(38px, 6vw, 56px);
}
.tool-view:not(.has-files) #activeToolDesc {
  margin: 0 auto;
  color: #555;
  font-size: clamp(18px, 2.6vw, 22px);
  line-height: 1.45;
}
.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}
.breadcrumbs a { color: var(--accent); }
.workspace-head { margin-bottom: 18px; }
.workspace-head p { margin-bottom: 0; color: var(--muted); }
.status-pill {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-weight: 800;
}
.work-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
  max-width: 1400px;
  margin: 32px auto 0;
}
body.has-files .upload-zone,
body.no-file-tool .upload-zone {
  display: none;
}
body:not(.has-files) .panel-head-actions {
  display: none;
}
body:not(.has-files):not(.no-file-tool) .page-preview {
  display: none;
}
.preview-panel, .settings-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.upload-zone {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
  text-align: center;
  border: 2px dashed var(--line);
  border-radius: 12px;
  background: #fff;
  transition: all 0.2s ease;
  overflow: hidden;
}
.upload-zone.dragover { border-color: var(--accent); background: var(--accent-soft); }
.upload-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 8px; color: #fff; background: var(--accent); font-size: 34px; line-height: 1; }
.upload-zone p { color: var(--muted); }
.select-files-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 86px;
  min-width: min(360px, 86vw);
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 14px 30px rgba(201, 139, 45, .22);
  cursor: pointer;
  font-size: clamp(23px, 4vw, 32px);
  font-weight: 850;
}
.select-files-btn:hover { background: var(--accent-dark); }
.select-files-btn b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid rgba(255,255,255,.75);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}
.tool-view:not(.has-files) .upload-zone p {
  color: #666;
  font-size: 18px;
}
.tool-view.has-files .select-files-btn {
  width: 100%;
  min-width: 0;
  min-height: 70px;
  gap: 12px;
  font-size: clamp(22px, 2.4vw, 28px);
}
.tool-view.has-files .select-files-btn b {
  width: 30px;
  height: 30px;
  font-size: 22px;
}
.preview-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafaf9; /* Warm off-white background for workspace */
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
  min-height: 400px;
}
.settings-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(31, 41, 55, 0.03);
}
.settings-panel .panel-head h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}
.settings-panel #fileCount {
  font-size: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 4px 10px;
  border-radius: 99px;
  font-weight: 800;
}
.file-list { display: none; } /* Hide raw file list as we use modern visual cards */
.empty { color: var(--muted); grid-column: 1 / -1; text-align: center; padding: 48px 0; font-weight: 600; }
.page-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  padding: 10px 4px;
}
.page-thumb {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(31, 41, 55, 0.04);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: grab;
}
.page-thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(31, 41, 55, 0.08);
  border-color: var(--accent);
}
.page-thumb canvas, .page-thumb img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  border-radius: 6px;
  background: #fdfdfd;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Card details and badges */
.card-index-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  background: var(--ink);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 2;
}
.card-delete-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #fee2e2;
  color: #ef4444;
  border: 2px solid #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 2;
}
.page-thumb:hover .card-delete-btn {
  opacity: 1;
  transform: scale(1);
}
.card-delete-btn:hover {
  background: #fecaca;
  color: #dc2626;
}
.card-details {
  width: 100%;
  margin-top: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.card-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.card-meta {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
}

/* Header Action Buttons */
.panel-head-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.panel-action-btn {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.15s ease;
}
.panel-action-btn:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-soft);
}
.panel-action-btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 10px rgba(229, 174, 85, 0.2);
}
.panel-action-btn.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.settings-panel label { display: grid; gap: 6px; margin-bottom: 12px; color: var(--muted); font-size: 13px; font-weight: 750; }
.settings-panel input, .settings-panel select, .settings-panel textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
}
.settings-panel textarea { min-height: 92px; resize: vertical; }

/* Run Button CTA */
.run-btn {
  width: 100%;
  min-height: 52px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 20px rgba(229, 174, 85, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 18px;
  cursor: pointer;
}
.run-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(229, 174, 85, 0.4);
}
.run-btn:active:not(:disabled) {
  transform: translateY(0);
}
.run-btn:disabled {
  background: #e4e4e7;
  color: #a1a1aa;
  box-shadow: none;
  border: 1px solid #e4e4e7;
  cursor: not-allowed;
}

.result-box { margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.download-link { display: inline-flex; margin-top: 10px; color: #fff; background: var(--accent-dark); border-radius: 8px; padding: 10px 14px; font-weight: 800; }
.icon-btn { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 8px 10px; cursor: pointer; }
.privacy { border-top: 1px solid var(--line); }
.privacy p { color: var(--muted); max-width: 760px; }
.content-pages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 48px clamp(18px, 4vw, 52px);
  background: #fff;
}
.info-panel {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: linear-gradient(180deg, #fff, #fffaf2);
}
.info-panel h2 {
  font-size: 24px;
  line-height: 1.18;
}
.info-panel p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}
.site-footer {
  padding: 42px clamp(18px, 4vw, 52px) 26px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 22px;
}
.footer-grid div { display: grid; align-content: start; gap: 9px; }
.footer-grid h3 { margin-bottom: 4px; font-size: 15px; }
.footer-grid a { color: var(--muted); font-size: 14px; }
.footer-grid a:hover { color: var(--accent); }
.footer-copy { margin: 28px 0 0; color: var(--muted); font-size: 13px; }

@media (max-width: 960px) {
  .hero, .work-layout { grid-template-columns: 1fr; }
  .quick-panel { max-width: 520px; }
  .section-head, .workspace-head { align-items: flex-start; flex-direction: column; }
  .tool-view:not(.has-files) .workspace-head { align-items: center; }
  .content-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
}

@media (max-width: 620px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .nav { width: 100%; justify-content: space-between; }
  .hero { min-height: auto; }
  .tool-grid { grid-template-columns: 1fr; }
  .search input { width: 100%; }
  .select-files-btn { min-width: 0; width: 100%; }
  .content-pages { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   DEDICATED SUBPAGES & SPA STYLING SYSTEM
   ========================================================================== */

/* Subpage Show/Hide Controls */
.page-section {
  display: none;
  min-height: calc(100vh - 120px);
  padding: 60px clamp(18px, 4vw, 52px);
  background: linear-gradient(180deg, #fffaf1 0%, #ffffff 320px);
  border-top: 1px solid var(--line);
}

body.route-features #features-page,
body.route-pricing #pricing-page,
body.route-faq #faq-page,
body.route-security #security-page,
body.route-privacy-policy #privacy-page,
body.route-terms-and-conditions #terms-page,
body.route-cookies #cookies-page,
body.route-about-us #about-page,
body.route-contact #contact-page,
body.route-blog #blog-page,
body.route-press #press-page,
body.route-sitemap #sitemap-page {
  display: block;
}

body.subpage-view #home,
body.subpage-view #tools,
body.subpage-view #content-preview-grid,
body.subpage-view #privacy-home-banner {
  display: none;
}

/* Page Header Structure */
.page-header {
  text-align: center;
  margin-bottom: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.page-header h1 {
  font-size: clamp(34px, 5vw, 54px);
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.1;
}
.page-subtitle {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--muted);
  line-height: 1.5;
}

/* Page Links Anchor style */
.page-link-anchor {
  display: inline-flex;
  margin-top: 14px;
  color: var(--accent-dark);
  font-weight: 750;
  font-size: 14px;
  transition: transform 0.2s ease;
}
.page-link-anchor:hover {
  transform: translateX(4px);
  color: var(--amber);
}

/* FEATURES PAGE */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}
.feature-card {
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(31, 41, 55, 0.06);
  border-color: rgba(229, 174, 85, 0.5);
}
.feat-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--ink);
}
.feature-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.features-comparison {
  max-width: 840px;
  margin: 0 auto;
}
.features-comparison h2 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 28px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.comparison-table th {
  background: var(--soft);
  color: var(--ink);
  font-weight: 750;
}
.comparison-table tr:last-child td {
  border-bottom: 0;
}

/* PRICING PAGE & TOGGLE */
.pricing-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 6px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 99px;
}
.pricing-label {
  font-size: 14px;
  font-weight: 750;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pricing-label.active {
  color: #fff;
  background: var(--accent-dark);
}
.discount-badge {
  font-size: 11px;
  background: #f04438;
  color: #fff;
  padding: 2px 8px;
  border-radius: 99px;
  margin-left: 4px;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d0d5dd;
  transition: .4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
input:checked + .slider {
  background-color: var(--accent);
}
input:checked + .slider:before {
  transform: translateX(22px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}
.pricing-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 28px;
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(31, 41, 55, 0.08);
}
.pricing-card.popular {
  border: 2px solid var(--accent);
  box-shadow: 0 12px 30px rgba(229, 174, 85, 0.12);
}
.popular-pill {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pricing-card h3 {
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 8px;
}
.plan-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 24px;
}
.price-wrap {
  margin-bottom: 28px;
  display: flex;
  align-items: baseline;
}
.currency {
  font-size: 24px;
  font-weight: 750;
  color: var(--ink);
  align-self: flex-start;
  margin-top: 4px;
}
.price {
  font-size: 56px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.period {
  font-size: 14px;
  color: var(--muted);
  margin-left: 4px;
}
.price-custom {
  font-size: 40px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.plan-btn {
  width: 100%;
  min-height: 48px;
  margin-bottom: 28px;
  font-size: 15px;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  font-size: 14px;
  color: var(--ink);
}
.plan-features li {
  line-height: 1.4;
  padding-left: 4px;
}

/* FAQ PAGE ACCORDION */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item:hover, .faq-item.active {
  border-color: var(--accent);
}
.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: 0;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 750;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
}
.faq-icon {
  font-size: 22px;
  color: var(--muted);
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-dark);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer p {
  padding: 0 24px 20px 24px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* LEGAL PAGES TEXT STYLING */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px clamp(20px, 5vw, 48px);
}
.legal-content h2 {
  font-size: 24px;
  margin-top: 32px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.legal-content h2:first-of-type {
  margin-top: 0;
}
.legal-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 20px;
}
.legal-content ul {
  margin-bottom: 24px;
  padding-left: 20px;
}
.legal-content li {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
}

/* Security Pillars Section */
.security-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.pillar-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--soft);
}
.pillar-card h4 {
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--ink);
}
.pillar-card p {
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 0;
  color: var(--muted);
}

/* About Us Core Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.value-card {
  background: var(--soft);
  border-radius: 8px;
  padding: 18px;
  text-align: center;
}
.value-card h5 {
  font-size: 15px;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 8px;
}
.value-card p {
  font-size: 12.5px;
  line-height: 1.45;
  margin: 0;
  color: var(--muted);
}

/* CONTACT US PAGE */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}
.contact-info h2 {
  font-size: 26px;
  margin-bottom: 12px;
}
.contact-info p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 32px;
}
.contact-details {
  display: grid;
  gap: 20px;
}
.detail-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.detail-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 20px;
  border-radius: 8px;
  flex-shrink: 0;
}
.detail-item strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 4px;
}
.detail-item p {
  font-size: 14px;
  margin: 0;
  color: var(--muted);
}

/* Form Styling */
.premium-form {
  display: grid;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.04);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.premium-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 750;
  color: var(--muted);
}
.premium-form input, .premium-form select, .premium-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
  transition: all 0.2s ease;
}
.premium-form textarea {
  min-height: 120px;
  resize: vertical;
}
.premium-form input:focus, .premium-form select:focus, .premium-form textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 174, 85, 0.2);
}
.submit-btn {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
  margin-top: 8px;
}

/* Success Card */
.form-success-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.04);
  animation: formSuccessFade 0.35s ease forwards;
}
@keyframes formSuccessFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.success-icon {
  display: inline-grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: #d1f2e5;
  color: #0f975d;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
}
.form-success-box h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--ink);
}
.form-success-box p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 380px;
  margin: 0 auto 24px;
}

/* BLOG PAGE */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(31, 41, 55, 0.06);
}
.blog-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.blog-tag {
  color: var(--accent-dark);
  font-weight: 850;
  text-transform: uppercase;
}
.blog-card h3 {
  font-size: 19px;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--ink);
}
.blog-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 20px;
  flex-grow: 1;
}
.read-more-link {
  font-size: 14px;
  font-weight: 750;
  color: var(--accent-dark);
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s ease;
}
.read-more-link:hover {
  color: var(--amber);
}

/* Blog Post Detail View */
.blog-post-detail {
  max-width: 800px;
  margin: 0 auto;
}
.back-blog-btn {
  margin-bottom: 28px;
}
.blog-detail-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px clamp(20px, 5vw, 48px);
}
.blog-detail-header {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.blog-detail-header .blog-meta {
  font-size: 13.5px;
  margin-bottom: 12px;
}
.blog-detail-header h2 {
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.15;
  margin: 0;
}
.blog-body {
  font-size: 16px;
  line-height: 1.75;
  color: #374151;
}
.blog-body h3 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 12px;
}
.blog-body p {
  margin-bottom: 20px;
}
.blog-body ul, .blog-body ol {
  margin-bottom: 24px;
  padding-left: 20px;
}
.blog-body li {
  margin-bottom: 8px;
}

/* PRESS PAGE RESOURCES */
.press-assets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 32px;
}
.asset-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--soft);
  text-align: center;
}
.asset-card strong {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.logo-preview-box {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-weight: 800;
  font-size: 18px;
}
.logo-preview-box.standard-preview {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.logo-preview-box.dark-preview {
  background: var(--ink);
  color: #fff;
}
.preview-brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: var(--accent);
  font-size: 16px;
}
.asset-dl-btn {
  width: 100%;
  min-height: 38px;
  font-size: 13px;
}

/* HTML SITEMAP PAGE */
.sitemap-container {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.sitemap-column h2 {
  font-size: 22px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
}
.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.sitemap-list li {
  font-size: 15px;
  font-weight: 750;
}
.sitemap-list a {
  color: var(--accent-dark);
  transition: color 0.15s ease;
}
.sitemap-list a:hover {
  color: var(--amber);
  text-decoration: underline;
}
.sitemap-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}
.sitemap-tools-grid h5 {
  font-size: 14px;
  margin-top: 0;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}
.sitemap-tools-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.sitemap-tools-grid a {
  font-size: 13.5px;
  color: var(--ink);
}
.sitemap-tools-grid a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* Responsive adjustments for subpages */
@media (max-width: 860px) {
  .contact-layout, .sitemap-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
@media (max-width: 580px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .premium-form {
    padding: 20px;
  }
}

/* Empty Workspace Placeholder State */
.empty-workspace-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-workspace-state .empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.05));
}
.empty-workspace-state h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.empty-workspace-state p {
  font-size: 14.5px;
  max-width: 320px;
  line-height: 1.5;
  margin: 0;
}

/* SEO Tool Guide & FAQ Styles */
.tool-guide-section {
  margin-top: 52px;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.02);
  text-align: left;
}
.tool-guide-section h2 {
  font-size: clamp(20px, 3.2vw, 28px);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 18px;
  border-bottom: 2px solid var(--accent-soft);
  padding-bottom: 10px;
}
.tool-guide-section h3 {
  font-size: 17px;
  font-weight: 750;
  color: var(--ink);
  margin-top: 24px;
  margin-bottom: 10px;
}
.tool-guide-section p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.tool-guide-section ol, .tool-guide-section ul {
  padding-left: 22px;
  margin-bottom: 22px;
}
.tool-guide-section li {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 10px;
}
.tool-guide-section li strong {
  color: var(--ink);
}
.tool-guide-faq {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.tool-guide-faq h3 {
  color: var(--amber);
}

/* AUTHOR PAGE STYLING */
.author-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  margin-top: 32px;
  align-items: start;
}
.author-avatar-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
.author-avatar-img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  font-size: 48px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.author-avatar-card h3 {
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 6px 0;
}
.author-role {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 20px 0;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.author-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  color: var(--line);
}
.author-socials a {
  color: var(--accent-dark);
  font-weight: 750;
  text-decoration: none;
  transition: color 0.15s ease;
}
.author-socials a:hover {
  color: var(--amber);
}
.author-bio-content h2 {
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.author-bio-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 20px;
}
.author-bio-content ul {
  padding-left: 20px;
  margin-bottom: 24px;
}
.author-bio-content li {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
}

/* COMPARISON PAGE STYLING */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14.5px;
  background: #fff;
}
.comparison-table th, .comparison-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.comparison-table th {
  background: var(--soft);
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
}
.comparison-table tr:hover td {
  background: rgba(229, 174, 85, 0.02);
}
.comparison-table td strong {
  color: var(--ink);
}

/* Responsive author page */
@media (max-width: 768px) {
  .author-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Drag and Drop File Reordering Styles */
.page-thumb.dragging {
  opacity: 0.4;
  border: 2px dashed var(--accent) !important;
}
.page-thumb.dragover {
  border: 2px solid var(--accent) !important;
  transform: scale(1.04);
  background: var(--soft);
}

/* SPONSOR / AD LINK IN FOOTER */
.footer-sponsor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 0 6px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 12px;
}
.sponsor-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 2px 7px;
}
.sponsor-link {
  font-size: 12px;
  color: var(--accent);
  opacity: 0.75;
  text-decoration: none;
  transition: opacity 0.2s ease;
  font-weight: 600;
}
.sponsor-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ===== SMARTLINK TOP ANNOUNCEMENT BAR ===== */
.smart-top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 9px 16px;
  background: linear-gradient(90deg, #7c3aed 0%, #db2777 100%);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  position: relative;
  z-index: 9999;
  flex-wrap: wrap;
}
.smart-top-bar-link {
  color: #fff;
  font-weight: 700;
  background: rgba(255,255,255,0.22);
  border-radius: 20px;
  padding: 3px 14px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.smart-top-bar-link:hover {
  background: rgba(255,255,255,0.38);
  transform: scale(1.04);
}
.smart-top-bar-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.2s;
}
.smart-top-bar-close:hover { color: #fff; }

/* ===== POST-RESULT AD BANNER ===== */
.post-result-ad {
  margin-top: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,58,237,0.12) 0%, rgba(219,39,119,0.10) 100%);
  border: 1px solid rgba(124,58,237,0.25);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeSlideIn 0.4s ease;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ad-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(124,58,237,0.18);
  color: #a78bfa;
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.post-result-ad-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 12px;
  flex-wrap: wrap;
}
.post-result-ad-text {
  font-size: 13px;
  color: var(--text-muted, #aaa);
}
.post-result-ad-btn {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #7c3aed, #db2777);
  border-radius: 20px;
  padding: 5px 16px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.post-result-ad-btn:hover {
  opacity: 0.88;
  transform: scale(1.03);
}


