/* REDSITE PDF to Excel Converter Stylesheet */
/* Conforms to DESIGN.md Brand & Design Tokens Specification */

:root {
  /* Brand Core Colors */
  --ink: #0a0a0a;          /* Raven Black — Headings, brand accents, dark sections */
  --ink-soft: #24272e;     /* Raven Soft — Card titles, deep borders */
  --red: #e11d48;          /* Poppy Red — Primary brand accent, primary CTA gradient, highlights */
  --red-hover: #be123c;    /* Deep Crimson — Button hover and active state */
  --blue: #b0e0e6;         /* Powder Blue — Privacy badges, dark-band highlights, symbols */
  --blue-accent: #0284c7;  /* Sky Blue — Focus rings, selection indicators, active links */

  /* Neutral Backgrounds & Surfaces */
  --paper: #ffffff;        /* Canvas Paper — Main page and card background */
  --paper-warm: #fafbfc;   /* Warm Surface — Toolbar, steps, footer backgrounds */
  --paper-panel: #f8fafc;  /* Panel Gray — Pane headers, eyebrow backgrounds */

  /* Borders & Dividers */
  --line: #e2e8f0;         /* Standard Border — Crisp 1px structure */
  --line-light: #f1f5f9;   /* Subtle Divider — Internal card borders */

  /* Typography Colors */
  --muted: #5e636e;        /* Secondary Text — Descriptions, metadata, secondary links */
  --muted-light: #8e939e;  /* Hints / Watermarks — Placeholders, shortcut hints */

  /* Semantic Feedback Tints */
  --red-soft: #fff1f2;     /* Error Banner Background */
  --red-border: #fecdd3;   /* Error Border */
  --green: #10b981;        /* Success / Active Live Dot */
  --green-soft: #ecfdf5;   /* Success Banner Background */
  --green-border: #a7f3d0; /* Success Border */

  /* Typography Families */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Monaco, Consolas, monospace;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 50px -12px rgba(10, 10, 10, 0.08);
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--red);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Heading Accents */
h1 em, h2 em, h3 em {
  font-style: normal;
  color: var(--red);
}

/* Eyebrow & Badges */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.18);
    opacity: 0.8;
  }
}

.step-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted-light);
  text-transform: uppercase;
}

/* Topbar Navigation (DESIGN.md 4.1) */
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(calc((100vw - 1240px) / 2), 24px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.product-logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 8px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.brand-byline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.brand-byline b {
  color: var(--red);
  font-weight: 700;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

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

.back-link {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink) !important;
  font-size: 13px;
  font-weight: 600;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.back-link:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* Main Layout */
main {
  flex: 1;
}

/* Hero Section */
.hero {
  max-width: 1240px;
  margin: 56px auto 72px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 56px;
  align-items: flex-start;
}

.hero-copy {
  padding-top: 12px;
}

.hero .eyebrow {
  background: var(--paper-panel);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(38px, 4.5vw, 56px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 20px;
}

.intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 32px;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-row b {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
}

/* Workbench / Tool Container (DESIGN.md 4.4) */
.workbench {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: all 0.2s ease;
}

/* Workbench Upload View */
.workbench-upload {
  padding: 32px;
}

.workbench-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.workbench-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 4px;
  letter-spacing: -0.03em;
}

.format-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  background: var(--red-soft);
  color: var(--red);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--red-border);
}

/* Drop Zone */
.drop-zone {
  min-height: 190px;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 20px;
  cursor: pointer;
  background: var(--paper-warm);
  transition: all 0.2s ease;
  position: relative;
  text-align: center;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--red);
  background: #fff8f9;
}

.drop-zone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-icon {
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: var(--blue-accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
}

.drop-zone strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.drop-zone small {
  font-size: 13px;
  color: var(--muted);
}

.drop-zone-actions {
  margin-top: 8px;
}

/* Selected File Box */
.selected-file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--paper-panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 20px;
}

.file-icon {
  width: 36px;
  height: 42px;
  background: var(--red-soft);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  border: 1px solid var(--red-border);
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.file-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.file-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.remove-file-btn {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.remove-file-btn:hover {
  color: var(--red);
  background: var(--red-soft);
}

/* Conversion Options */
.conversion-options {
  margin-top: 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}

.option-select {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  font-family: var(--font-sans);
}

.option-select:focus {
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

/* Signature Action Buttons (DESIGN.md 4.3) */
.primary-btn {
  height: 48px;
  width: 100%;
  padding: 0 20px;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a080c 45%, #e11d48 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.25);
  transition: all 0.15s ease;
}

.primary-btn:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}

.primary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Secondary & Pill Buttons */
.pill-btn {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-btn:hover {
  background: var(--paper-warm);
  border-color: #cbd5e1;
}

.pill-btn.sample-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  font-size: 12px;
}

.pill-btn.sample-btn:hover {
  background: #e2e8f0;
  border-color: var(--ink-soft);
}

.pill-btn.secondary-pill {
  font-size: 12px;
  color: var(--muted);
}

.pill-btn.secondary-pill:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.pill-btn.danger-pill {
  color: var(--red);
}

.pill-btn.danger-pill:hover {
  background: var(--red-soft);
  border-color: var(--red-border);
}

.pill-btn.copy-btn {
  background: var(--paper-panel);
}

/* Status Banner (DESIGN.md 4.4) */
.status-banner {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  transition: all 0.2s ease;
}

.status-banner.success {
  background: var(--green-soft);
  border-color: var(--green-border);
  color: #065f46;
}

.status-banner.error {
  background: var(--red-soft);
  border-color: var(--red-border);
  color: #9f1239;
}

.status-banner.loading {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}

.status-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.legal-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted-light);
  text-align: center;
  line-height: 1.5;
}

/* ===================================================================== */
/* STEP 2: INTERACTIVE TABLE PREVIEW & EDITOR VIEW */
/* ===================================================================== */

.workbench-editor {
  display: flex;
  flex-direction: column;
}

/* Editor Header */
.editor-header {
  padding: 20px 24px;
  background: var(--paper-panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.editor-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.editor-title-wrap h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.editor-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stat-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 4px;
}

.stat-hint {
  font-size: 12px;
  color: var(--blue-accent);
  font-weight: 500;
  margin-left: 4px;
}

/* Sheet Tabs (if multi-page) */
.sheet-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 24px 0;
  background: #f1f5f9;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.sheet-tab {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  background: var(--paper-panel);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.sheet-tab:hover {
  background: var(--paper);
  color: var(--ink);
}

.sheet-tab.active {
  background: var(--paper);
  color: var(--red);
  border-color: var(--line);
  border-top: 2px solid var(--red);
  font-weight: 700;
}

/* Editor Toolbar */
.editor-toolbar {
  padding: 12px 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.toolbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  width: 240px;
  height: 34px;
}

.toolbar-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  width: 100%;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Table Scroll Container */
.table-scroll-container {
  max-height: 480px;
  overflow: auto;
  position: relative;
  background: var(--paper);
  outline: none;
}

.table-scroll-container:focus {
  box-shadow: inset 0 0 0 2px var(--blue-accent);
}

/* Spreadsheet Table Styling */
.spreadsheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

/* Header Row */
.spreadsheet-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  border-right: 1px solid var(--line);
  border-bottom: 2px solid var(--line);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  user-select: none;
  z-index: 2;
}

.spreadsheet-table th.row-index-col-header {
  width: 44px;
  min-width: 44px;
  text-align: center;
  background: #edf2f7;
  left: 0;
  z-index: 3;
}

/* Row Numbers */
.spreadsheet-table td.row-index {
  position: sticky;
  left: 0;
  background: #f8fafc;
  border-right: 2px solid var(--line);
  border-bottom: 1px solid var(--line-light);
  padding: 6px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-light);
  text-align: center;
  user-select: none;
  z-index: 1;
}

/* Cells */
.spreadsheet-table td.cell-data {
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  padding: 8px 12px;
  min-width: 120px;
  max-width: 280px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
  cursor: text;
  transition: background-color 0.1s ease;
}

.spreadsheet-table tr:hover td.cell-data {
  background-color: #fafbfc;
}

.spreadsheet-table tr:hover td.row-index {
  color: var(--red);
  background-color: #edf2f7;
}

/* Cell Focus / Edit State */
.spreadsheet-table td.cell-data:focus,
.spreadsheet-table td.cell-data[contenteditable="true"]:focus {
  outline: 2px solid var(--blue-accent);
  outline-offset: -2px;
  background-color: #f0f9ff !important;
  box-shadow: 0 0 0 1px var(--blue-accent);
}

.spreadsheet-table tr.hidden-row {
  display: none;
}

/* Editor Export & Download Bar */
.editor-export-bar {
  padding: 18px 24px;
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.filename-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.filename-input-wrap input {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  width: 220px;
}

.filename-input-wrap input:focus {
  outline: none;
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.export-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.export-primary-btn {
  width: auto;
  min-width: 200px;
}

/* Features Grid Section (DESIGN.md 5) */
.features-section {
  max-width: 1240px;
  margin: 0 auto 96px;
  padding: 0 24px;
}

.section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.section-heading .eyebrow {
  margin-bottom: 12px;
}

.section-heading h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-heading p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  padding: 32px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* How It Works Section */
.how-section {
  max-width: 1240px;
  margin: 0 auto 96px;
  padding: 0 24px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.steps article {
  padding: 32px 28px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  display: block;
  margin-bottom: 14px;
}

.steps h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.steps p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* Signature Redsite Privacy Band (DESIGN.md 4.5) */
.privacy-band {
  background: #0a0a0a;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 48px max(calc((100vw - 1240px) / 2), 24px);
  margin-bottom: 96px;
}

.privacy-symbol {
  font-size: 44px;
  color: #b0e0e6;
  flex-shrink: 0;
}

.privacy-content {
  flex: 1;
}

.privacy-content .eyebrow {
  color: #b0e0e6;
  margin-bottom: 8px;
}

.privacy-band h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.privacy-band h2 em {
  color: #b0e0e6;
}

.privacy-band p {
  font-size: 14px;
  line-height: 1.7;
  color: #94a3b8;
  max-width: 640px;
}

.privacy-tag {
  border: 1px solid #334155;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #b0e0e6;
  white-space: nowrap;
}

/* FAQ Accordion Section (DESIGN.md 4.6) */
.faq-section {
  max-width: 1240px;
  margin: 0 auto 96px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: flex-start;
}

.faq-section .section-heading {
  text-align: left;
  position: sticky;
  top: 96px;
}

.faq-section .section-heading h2 {
  margin-bottom: 12px;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  transition: all 0.15s ease;
}

.faq-list summary {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
  line-height: 1.5;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: -2px;
  color: var(--red);
  font-size: 22px;
  font-weight: 600;
  transition: transform 0.15s ease;
}

.faq-list details[open] summary::after {
  content: '−';
}

.faq-list p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 14px;
  padding-right: 16px;
}

.faq-list strong {
  color: var(--ink);
}

/* Footer (DESIGN.md 4.1) */
footer {
  min-height: 72px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px max(calc((100vw - 1240px) / 2), 24px);
  font-size: 13px;
  color: var(--muted);
  gap: 16px;
  flex-wrap: wrap;
}

.footer-product {
  font-weight: 700;
  color: var(--ink);
}

.footer-product span {
  font-weight: 400;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-nav a {
  color: var(--muted);
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--red);
}

/* Toast Pill Notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toast-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toast-in {
  from {
    transform: translate(-50%, 20px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

/* Focus Visibility & Accessibility */
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
.drop-zone:focus-within {
  outline: 3px solid var(--blue-accent);
  outline-offset: 3px;
}

/* ===================================================================== */
/* PRIVACY PAGE STYLES */
/* ===================================================================== */

.policy-page {
  max-width: 800px;
  margin: 56px auto 96px;
  padding: 0 24px;
}

.policy-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 28px;
}

.policy-back:hover {
  color: var(--red);
}

.policy-page h1 {
  font-size: clamp(36px, 5vw, 52px);
  margin: 16px 0 20px;
}

.policy-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  border-left: 3px solid var(--red);
  padding-left: 20px;
  margin-bottom: 44px;
}

.policy-block {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.policy-block h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.policy-block p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.policy-block a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-block a:hover {
  color: var(--red);
}

.policy-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-light);
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}

/* ===================================================================== */
/* RESPONSIVENESS (DESIGN.md 5) */
/* ===================================================================== */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    margin: 40px auto 60px;
  }

  .intro {
    max-width: 100%;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq-section .section-heading {
    position: static;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .topbar {
    height: 64px;
    padding: 0 18px;
  }

  .topbar nav {
    gap: 16px;
    font-size: 13px;
  }

  .topbar nav a:not(.back-link) {
    display: none;
  }

  .hero {
    margin: 28px auto 48px;
    padding: 0 18px;
  }

  .workbench-upload {
    padding: 20px;
  }

  .editor-header {
    padding: 16px 18px;
  }

  .editor-toolbar {
    padding: 12px 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-search {
    width: 100%;
  }

  .toolbar-actions {
    justify-content: flex-start;
  }

  .editor-export-bar {
    padding: 16px 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .filename-input-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .filename-input-wrap input {
    width: 100%;
  }

  .export-actions {
    flex-direction: column;
    width: 100%;
  }

  .export-actions button {
    width: 100%;
    justify-content: center;
  }

  .features-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .privacy-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 36px 18px;
    margin-bottom: 64px;
  }

  .privacy-symbol {
    font-size: 36px;
  }

  .privacy-tag {
    align-self: flex-start;
  }

  .faq-section {
    padding: 0 18px;
    margin-bottom: 64px;
  }

  footer {
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
