/* ============================================
   PICTOOLKIT DESIGN SYSTEM
   Confident minimalism. Editorial typography.
   Single accent. Generous whitespace.
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=JetBrains+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  /* Colors — warm off-white base, deep ink, single moss-green accent */
  --bg: #f7f5f0;
  --bg-elevated: #ffffff;
  --bg-tinted: #efece4;
  --ink: #1a1a1a;
  --ink-soft: #4a4a48;
  --ink-muted: #8a8a85;
  --ink-faint: #c4c2bb;
  --line: #e4e1d8;
  --line-soft: #efece4;
  --accent: #d97706;
  --accent-deep: #b45309;
  --accent-soft: #fde4b3;
  --accent-faint: #fef3c7;
  --warn: #c2410c;
  --warn-soft: #fee4d6;

  /* Typography */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================
   LAYOUT PRIMITIVES
============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .container, .container-narrow {
    padding: 0 20px;
  }
}

/* ============================================
   NAVIGATION
============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-links a {
  transition: color 0.15s var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* ============================================
   BUTTONS
============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: all 0.15s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: #000;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
}

.btn-ghost:hover {
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-outline:hover {
  box-shadow: inset 0 0 0 1px var(--ink);
}

.btn-large {
  padding: 14px 24px;
  font-size: 21px;
}

/* ============================================
   HERO
============================================ */

.hero {
  padding: 88px 0 64px;
  text-align: center;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-faint);
  color: var(--accent);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: -0.005em;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-variation-settings: "opsz" 144;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-variation-settings: "opsz" 144;
}

.hero-sub {
  font-size: 21px;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto 44px;
  line-height: 1.5;
}

/* ============================================
   HERO DROPZONE
============================================ */

.dropzone {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 2.5px dashed var(--ink-soft);
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  position: relative;
  overflow: hidden;
}

.dropzone:hover {
  border-color: var(--accent);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -12px rgba(217, 119, 6, 0.18);
}

.dropzone.drag-over {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent-faint);
}

.dropzone-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  background: var(--bg-tinted);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  transition: all 0.2s var(--ease);
}

.dropzone:hover .dropzone-icon {
  background: var(--accent-faint);
  color: var(--accent);
  transform: scale(1.05);
}

.dropzone-title {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 6px;
}

.dropzone-sub {
  font-size: 16px;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.dropzone-formats {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-muted);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-badge svg {
  color: var(--accent);
}

/* ============================================
   SECTION HEADERS
============================================ */

.section {
  padding: 96px 0;
}

.section-tinted {
  background: var(--bg-tinted);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-deep);
  margin-bottom: 20px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  max-width: 720px;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 56px;
}

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

.section-head-center .section-title,
.section-head-center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   TOOLS GRID
============================================ */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 980px) {
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

.tool-card {
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.2s var(--ease);
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.12);
}

.tool-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-tinted);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--ink);
  transition: all 0.2s var(--ease);
}

.tool-card:hover .tool-card-icon {
  background: var(--accent);
  color: var(--bg);
}

.tool-card-title {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.tool-card-sub {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.4;
}

.tool-card-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--warn-soft);
  color: var(--warn);
}

.tool-card-tag.live {
  background: var(--accent-faint);
  color: var(--accent);
}

/* ============================================
   WHY US — feature pillars
============================================ */

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

@media (max-width: 900px) {
  .pillars { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 16px;
  line-height: 1;
}

.pillar-title {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.pillar-sub {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ============================================
   COMPARISON TABLE
============================================ */

.compare-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.compare-table thead {
  background: var(--bg-tinted);
}

.compare-table th {
  text-align: left;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}

.compare-table th:not(:first-child) {
  text-align: center;
}

.compare-table th.our {
  color: var(--accent-deep);
  font-weight: 700;
}

.compare-table td {
  padding: 16px 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
}

.compare-table td:not(:first-child) {
  text-align: center;
}

.compare-check { color: var(--accent); font-weight: 600; }
.compare-x { color: var(--ink-faint); }
.compare-partial { color: #c69a3c; }

@media (max-width: 640px) {
  .compare-table th, .compare-table td { padding: 12px 10px; font-size: 13px; }
}

/* ============================================
   FOOTER
============================================ */

.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 880px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.footer-brand-block .brand {
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 280px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 16px;
  color: var(--ink-soft);
  transition: color 0.15s var(--ease);
}

.footer-col a:hover {
  color: var(--accent-deep);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-muted);
}

@media (max-width: 560px) {
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}

/* ============================================
   TOOL PAGE LAYOUT (shared by /tools/*)
============================================ */

.tool-page {
  padding: 48px 0 96px;
}

.tool-breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.tool-breadcrumb a {
  color: var(--ink-muted);
  transition: color 0.15s var(--ease);
}

.tool-breadcrumb a:hover {
  color: var(--accent-deep);
}

.tool-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tool-head h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 12px;
}

.tool-head h1 em {
  font-style: italic;
  color: var(--accent);
}

.tool-head-text {
  flex: 1;
  min-width: 280px;
}

.tool-head-sub {
  font-size: 21px;
  color: var(--ink-soft);
  max-width: 540px;
  line-height: 1.5;
}

.tool-privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--accent-faint);
  color: var(--accent);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* Tool workspace */

.workspace {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 480px;
}

.workspace-empty {
  display: grid;
  place-items: center;
  padding: 80px 32px;
}

.workspace-dropzone {
  text-align: center;
  cursor: pointer;
  max-width: 480px;
}

.workspace-dropzone .dropzone-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  background: var(--bg-tinted);
}

.workspace.has-files {
  padding: 0;
}

.workspace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-tinted);
  flex-wrap: wrap;
  gap: 16px;
}

.workspace-toolbar-info {
  font-size: 16px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 16px;
}

.workspace-toolbar-info strong {
  color: var(--ink);
  font-weight: 600;
}

.workspace-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.workspace-body {
  display: grid;
  grid-template-columns: 1fr 320px;
}

@media (max-width: 880px) {
  .workspace-body {
    grid-template-columns: 1fr;
  }
}

.file-list {
  padding: 8px;
  max-height: 600px;
  overflow-y: auto;
}

.file-row {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius);
  transition: background 0.15s var(--ease);
}

.file-row:hover {
  background: var(--bg-tinted);
}

.file-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--bg-tinted);
  object-fit: cover;
  border: 1px solid var(--line);
}

.file-info {
  min-width: 0;
}

.file-name {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.file-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.file-meta .savings {
  color: var(--accent-deep);
  font-weight: 500;
}

.file-status {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--bg-tinted);
  color: var(--ink-muted);
}

.file-status.processing { background: #e8e6dc; color: #555550; }
.file-status.done { background: var(--accent-faint); color: var(--accent-deep); }
.file-status.error { background: var(--warn-soft); color: var(--warn); }

.file-action {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  transition: all 0.15s var(--ease);
}

.file-action:hover {
  background: var(--bg-tinted);
  color: var(--ink);
}

/* Settings panel */

.settings-panel {
  padding: 24px;
  border-left: 1px solid var(--line);
  background: var(--bg);
}

@media (max-width: 880px) {
  .settings-panel {
    border-left: none;
    border-top: 1px solid var(--line);
  }
}

.settings-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 20px;
}

.setting {
  margin-bottom: 24px;
}

.setting-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink-soft);
}

.setting-value {
  font-family: var(--font-mono);
  color: var(--accent-deep);
}

.setting input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  outline: none;
}

.setting input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s var(--ease);
}

.setting input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.setting input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.setting select,
.setting input[type="number"],
.setting input[type="text"] {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg-elevated);
  border: 2px solid var(--ink-soft);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.15s var(--ease);
}

.setting select:focus,
.setting input:focus {
  outline: none;
  border-color: var(--accent);
  border-width: 2px;
}

.format-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.format-pill {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.15s var(--ease);
}

.format-pill:hover {
  border-color: var(--ink-soft);
}

.format-pill.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.savings-summary {
  margin-top: 24px;
  padding: 16px;
  background: var(--accent-faint);
  border-radius: var(--radius);
}

.savings-summary-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.savings-summary-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.savings-summary-detail {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ============================================
   ENTRANCE ANIMATIONS
============================================ */

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s var(--ease-out) forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
.delay-5 { animation-delay: 0.4s; }

/* Hidden file input */
.hidden-input {
  display: none;
}


/* ============================================================
   Adsterra ad banner — responsive 728x90 / 320x50
   Reserves vertical space to avoid CLS (Cumulative Layout Shift)
   ============================================================ */
.ad-banner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 0;
  background: transparent;
  border-top: 1px solid var(--line);
}
.ad-banner-inner {
  margin: 0 auto;
  overflow: hidden;
}
.ad-banner-inner.desktop {
  display: block;
  width: 728px;
  height: 90px;
  max-width: 100%;
}
.ad-banner-inner.mobile {
  display: none;
  width: 320px;
  height: 50px;
  max-width: 100%;
}
@media (max-width: 720px) {
  .ad-banner-inner.desktop { display: none; }
  .ad-banner-inner.mobile  { display: block; }
  .ad-banner { padding: 10px 0; }
}
