:root {
  --bg: #FFFFFF;
  --ink: #000000;
  --muted: #808080;
  --line: #D0D0D0;
  --panel: #FFFFFF;
  --accent: #000000;
  --accent-light: #F8F8F8;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --radius: 0px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Background Decoration - Removed for minimalist aesthetic */

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.nav-inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: auto;
}

.logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0;
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-cta:hover { opacity: 0.8; }

/* Hero Section */
.hero {
  padding: 16px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.badge {
  display: none;
}

h1 {
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.gradient-text {
  color: var(--ink);
}

.lede {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.3;
  margin: 0 0 12px 0;
  max-width: none;
  font-weight: 400;
}

.tagline {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
  max-width: 480px;
}

.features-list {
  display: none;
}

.features-list li {
  display: none;
}

.features-list svg {
  display: none;
}

/* App Card (The Converter) */
.app-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0px;
  box-shadow: none;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.paywall {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 0px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.pay-badge {
  display: none;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}

.price-sub {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}

.plan-copy {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

.pay-button {
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 0px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.pay-button:hover {
  background: #333333;
}

.app-card.is-locked .dropzone, .app-card.is-locked .controls {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(0.5);
}

.app-card.is-unlocked .paywall {
  background: #F0F0F0;
  border-color: var(--line);
}

.app-card.is-unlocked .pay-badge { display: none; }
.app-card.is-unlocked .price { color: var(--ink); }
.app-card.is-unlocked .pay-button { display: none; }

.app-card.is-unlocked .price::after {
  content: " ✓";
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

/* Upload Section */
.upload-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Dropzone */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  border: 1px dashed var(--line);
  border-radius: 0px;
  background: #FAFAFA;
  cursor: pointer;
  transition: all 0.2s;
}

.dropzone:hover, .dropzone.is-over {
  border-color: var(--ink);
  background: #F8F8F8;
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.drop-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 0px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: var(--ink);
}

.drop-title { font-weight: 600; color: var(--ink); margin-bottom: 2px; font-size: 0.85rem; }
.drop-copy { font-size: 0.75rem; color: var(--muted); }

.format-strip {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.format-strip span {
  padding: 3px 6px;
  border-radius: 0px;
  font-size: 0.7rem;
  font-weight: 600;
  background: #F8F8F8;
  color: var(--muted);
  border: 1px solid var(--line);
  cursor: pointer;
}

.format-strip span.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Controls */
.controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
}

.field select {
  width: 100%;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 0px;
  background: #fff;
  padding: 0 6px;
  font-size: 0.8rem;
  color: var(--ink);
  appearance: none;
  cursor: pointer;
  font-weight: 400;
}

.field input[type="range"] {
  display: none;
}

.primary {
  height: 32px;
  padding: 0 16px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 0px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
  text-transform: uppercase;
}

.primary:hover { background: #333333; }
.primary:disabled { background: #CCCCCC; cursor: not-allowed; color: #666666; }

.status {
  font-size: 0.75rem;
  color: var(--muted);
  min-height: 16px;
}
.status.is-error { color: #000000; font-weight: 600; }

.result {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 8px;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 0px;
  padding: 8px;
}

.result img {
  width: 40px;
  height: 40px;
  border-radius: 0px;
  object-fit: cover;
  background: #E8E8E8 center/24px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm-1 1.5L18.5 9H13V3.5zM6 20V4h5v7h7v9H6z'/%3E%3C/svg%3E");
  border: 1px solid var(--line);
}

.result-copy strong { display: block; font-size: 0.8rem; font-weight: 600; }
.result-copy span { font-size: 0.7rem; color: var(--muted); }

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: 0px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background 0.2s;
}

.download-btn:hover { background: #333333; }

/* Use Cases Section */
.section {
  display: none;
}

h2 {
  display: none;
}

.grid-3 {
  display: none;
}

.case-card {
  display: none;
}

.case-icon {
  display: none;
}

.case-card h3 {
  display: none;
}

.case-card p {
  display: none;
}

/* Footer */
.footer {
  display: none;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .controls { grid-template-columns: 1fr; }
  .primary { width: 100%; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  .hero { padding: 24px 0; }
  .paywall { flex-direction: column; align-items: flex-start; }
}
/* Accessibility improvements and dev utilities */
.text-btn {
  background: transparent;
  border: none;
  color: var(--accent);
  padding: 0;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.text-btn:hover { opacity: 0.85; }

/* Strong visible focus for keyboard users */
:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 1px;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input[type="range"]:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 1px;
}

.dropzone:focus-visible {
  border-color: var(--ink);
  background: #F8F8F8;
}

/* Emphasize error status when focused after announcements */
.status.is-error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25);
  border-radius: 6px;
}
/* Return pages (success / cancel) */
.return-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.return-page .return-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 16px;
  background: var(--bg);
}

.return-page .return-panel {
  width: 100%;
  max-width: 480px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 24px;
}

.return-page .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.return-page h1#return-title {
  font-size: 1.5rem;
  letter-spacing: 0;
  margin-bottom: 12px;
  color: var(--ink);
}

.return-page .lede {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.return-page .return-action {
  display: inline-block;
  margin-top: 8px;
}

.return-page .return-action a.primary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s;
  text-transform: uppercase;
}

.return-page .return-action a.primary:hover {
  background: #333333;
}