:root {
  --bg: #f7efe4;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-soft: #fff7ef;
  --surface-strong: #fff2e0;
  --ink: #17202a;
  --muted: #667085;
  --line: #eadccd;
  --brand: #177e89;
  --brand-strong: #115e59;
  --accent: #ef7d57;
  --accent-soft: #f3a712;
  --shadow: 0 18px 40px rgba(90, 68, 46, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(239, 125, 87, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(23, 126, 137, 0.16), transparent 24%),
    linear-gradient(180deg, #fcf7f0 0%, var(--bg) 100%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d6c7b7;
  border-radius: 14px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
}

input[type="color"] {
  padding: 4px;
}

textarea {
  resize: vertical;
}

.app-shell {
  width: min(1180px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 22px 0 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1px solid rgba(239, 125, 87, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
}

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

.menu a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.menu a:hover {
  color: var(--brand-strong);
  background: rgba(239, 125, 87, 0.1);
}

.menu-dropdown {
  position: relative;
}

.menu-dropdown-toggle {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.menu-dropdown-toggle:hover,
.menu-dropdown:hover .menu-dropdown-toggle {
  color: var(--brand-strong);
  background: rgba(239, 125, 87, 0.1);
}

.menu-dropdown-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  min-width: 160px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  z-index: 10;
}

.menu-dropdown:hover .menu-dropdown-list,
.menu-dropdown:focus-within .menu-dropdown-list {
  display: grid;
  gap: 6px;
}

.menu-dropdown-list a {
  padding: 9px 10px;
  border-radius: 12px;
}

.main-layout {
  display: grid;
  gap: 22px;
}

.intro-card,
.panel {
  border: 1px solid rgba(239, 125, 87, 0.12);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.intro-card {
  padding: 18px 22px;
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.98), rgba(255, 255, 255, 0.98)),
    linear-gradient(135deg, rgba(243, 167, 18, 0.08), rgba(23, 126, 137, 0.06));
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
}

h1 {
  max-width: none;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.02;
}

.intro-text {
  max-width: 62ch;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.feature-chip {
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fffaf4, #fff2df);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.feature-chip:hover,
.feature-chip.is-active {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  transform: translateY(-1px);
}

.panel {
  padding: 24px;
}

.studio-header,
.results-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.studio-copy,
.summary,
.upload-note,
.tool-note,
.selection-chip span,
.result-details,
.section-copy,
.site-footer p,
.info-card p,
.ad-card p {
  color: var(--muted);
  line-height: 1.6;
}

.studio-copy,
.summary {
  max-width: 360px;
  text-align: right;
}

.tool-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tool-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  background: #fff9f1;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.tool-tab:hover,
.tool-tab.is-active {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  transform: translateY(-1px);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.1fr);
  gap: 18px;
  margin-top: 18px;
}

.workspace-panel,
.settings-panel,
.selection-panel,
.result-card {
  border-radius: 22px;
}

.workspace-panel,
.settings-panel {
  padding: 18px;
  background: linear-gradient(180deg, #fffaf4, #fff7ef);
  border: 1px solid var(--line);
}

.dropzone {
  border: 2px dashed rgba(23, 126, 137, 0.28);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  background: linear-gradient(180deg, #fffdf9 0%, #fff3e6 100%);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone.drag-over {
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(239, 125, 87, 0.16);
  outline: none;
}

.dropzone-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 18px;
  color: white;
  font-size: 1.9rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
}

.dropzone h3 {
  font-size: 1.6rem;
}

.dropzone p {
  margin: 8px 0 0;
  color: var(--muted);
}

.upload-note,
.tool-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(23, 126, 137, 0.1);
}

.selection-panel {
  margin-top: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.selection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.selection-count {
  padding: 8px 12px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 800;
}

.selection-list {
  display: grid;
  gap: 10px;
}

.selection-empty {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
  text-align: center;
}

.selection-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--line);
}

.selection-chip-copy {
  min-width: 0;
}

.selection-chip strong {
  display: block;
  overflow-wrap: anywhere;
}

.selection-remove {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff8ef;
  font-weight: 800;
  cursor: pointer;
}

.settings-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.setting-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
}

.setting-card span {
  font-weight: 800;
}

.setting-card small {
  color: var(--muted);
  line-height: 1.5;
}

.action-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.primary-button,
.secondary-button,
.download-button {
  border: none;
  border-radius: 14px;
  padding: 13px 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
}

.primary-button {
  min-width: 180px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
}

.secondary-button,
.download-button {
  background: #fff8ef;
  color: var(--ink);
  border: 1px solid var(--line);
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.results-panel h2,
.studio-panel h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 24px;
  margin-top: 18px;
  border-radius: 20px;
  border: 1px dashed var(--line);
  background: linear-gradient(180deg, #fffaf4, #fff6ec);
  text-align: center;
}

.empty-state p {
  margin: 0 0 8px;
  font-weight: 800;
}

.empty-state span {
  color: var(--muted);
}

.result-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.how-panel .section-header {
  margin-bottom: 10px;
}

.how-panel .info-card {
  padding: 12px 14px;
}

.how-panel .info-card h3 {
  font-size: 0.98rem;
}

.how-panel .info-card p {
  font-size: 0.9rem;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.formats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.format-highlight {
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #fffaf4, #fff2df);
}

.format-highlight strong {
  display: block;
  margin-bottom: 6px;
}

.format-highlight p,
.format-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.format-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fffaf4, #fff6ec);
}

.format-card-accent {
  background: linear-gradient(135deg, rgba(243, 167, 18, 0.14), rgba(239, 125, 87, 0.08));
}

.format-card h3 {
  margin-bottom: 10px;
}

.format-note {
  margin-bottom: 12px;
}

.format-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.8;
}

.seo-copy {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.seo-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.keyword-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.keyword-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff8ef, #fff1df);
  border: 1px solid var(--line);
  font-weight: 700;
}

.directory-link {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fffaf4, #fff6ec);
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease;
}

.directory-link:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #fff7ef, #ffeed8);
}

.info-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fffaf4, #fff6ec);
}
.info-card h3,
.site-footer strong {
  display: block;
  margin-bottom: 10px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-note {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fffaf4, #fff3e6);
  border: 1px solid var(--line);
  font-weight: 700;
}

.contact-note a,
.footer-email a {
  color: var(--brand-strong);
}

.form-status {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  font-weight: 700;
}

.form-status.is-success {
  background: rgba(23, 126, 137, 0.08);
  color: var(--brand-strong);
  border-color: rgba(23, 126, 137, 0.2);
}

.form-status.is-error {
  background: rgba(239, 125, 87, 0.1);
  color: #9a3412;
  border-color: rgba(239, 125, 87, 0.25);
}

.contact-message {
  grid-column: 1 / -1;
}

.contact-form .primary-button {
  width: fit-content;
}

.legal-grid {
  margin-top: 0;
}

.site-footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 22px 24px;
  border: 1px solid rgba(239, 125, 87, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.site-footer p {
  max-width: 500px;
  margin: 8px 0 0;
}

.footer-email {
  font-weight: 700;
}

.footer-support-card {
  max-width: 280px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fffaf4, #fff6ec);
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff8ef;
  border: 1px solid var(--line);
  font-weight: 700;
}


.result-card {
  padding: 18px;
  background: linear-gradient(180deg, #fffaf4, #fff6ec);
  border: 1px solid var(--line);
}

.result-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.result-name {
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.result-badge {
  flex-shrink: 0;
  padding: 9px 12px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand);
}

.result-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.metric {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--muted);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.compare-panel {
  display: grid;
  gap: 8px;
}

.compare-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.preview-frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(45deg, rgba(148, 163, 184, 0.12) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(148, 163, 184, 0.12) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(148, 163, 184, 0.12) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(148, 163, 184, 0.12) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  aspect-ratio: 4 / 3;
}

.preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 250, 244, 0.86);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.result-status {
  margin: 0;
  font-weight: 800;
}

.file-result-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.file-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: white;
  font-weight: 800;
  font-size: 1.05rem;
}

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

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .studio-grid,
  .feature-grid,
  .settings-grid,
  .compare-grid,
  .info-grid,
  .contact-form,
  .directory-grid,
  .formats-grid,
  .steps-compact-grid {
    grid-template-columns: 1fr;
  }

  .studio-header,
  .section-header,
  .results-header,
  .card-footer,
  .file-result-card,
  .selection-header,
  .topbar,
  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .studio-copy,
  .summary {
    max-width: none;
    text-align: left;
  }

  .file-result-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-message {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100vw - 18px, 100%);
    padding-top: 14px;
  }

  .intro-card,
  .panel {
    padding: 18px;
    border-radius: 18px;
  }

  .action-row {
    flex-direction: column;
  }

  .tool-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .menu {
    width: 100%;
  }

  .menu-dropdown {
    width: 100%;
  }

  .menu-dropdown-list {
    position: static;
    display: grid;
    margin-top: 6px;
    box-shadow: none;
  }

  h1 {
    font-size: clamp(1.9rem, 9vw, 2.7rem);
  }
}
