:root {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #1f2937;
  background-color: #f5f7fb;
  line-height: 1.5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #f5f7fb;
}

.app-main {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.workspace-wrapper {
  padding: 30px;
  flex: 1;
  display: flex;
}

.hidden {
  display: none !important;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  padding: 1rem 1.5rem;
  background-color: #ffffff;
  color: #1f2937;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 16px 24px -30px rgba(15, 23, 42, 0.3);
}

.app-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-name {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-nav-link {
  appearance: none;
  border: none;
  background: transparent;
  color: #2563eb;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
}

.header-nav-link:hover,
.header-nav-link:focus-visible {
  text-decoration: underline;
}


.hero-stage {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3.5rem 1.5rem 3rem;
  background: linear-gradient(120deg, rgba(236, 244, 255, 0.9), rgba(250, 238, 255, 0.75));
}

.hero-card {
  width: 100%;
  max-width: 1000px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 252, 255, 0.9));
  border-radius: 32px;
  padding: 3.25rem 3.5rem;
  box-shadow: 0 40px 65px -40px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(223, 230, 240, 0.9);
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  backdrop-filter: blur(12px);
}

.hero-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-header h1 {
  margin: 0;
  font-size: 2.35rem;
  color: #101828;
}

.hero-subtitle {
  margin: 0;
  color: rgba(71, 85, 105, 0.74);
  font-size: 1.03rem;
}

.hero-action {
  width: 100%;
  font-size: 1rem;
  padding: 0.95rem 1.35rem;
  margin-top: 0.25rem;
  border-radius: 12px;
  background: linear-gradient(90deg, #2563eb, #4338ca);
  box-shadow: 0 18px 30px -20px rgba(67, 56, 202, 0.55);
}

.trust-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
}

.trust-point {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: rgba(240, 245, 255, 0.8);
  border: 1px solid rgba(201, 214, 255, 0.7);
  font-size: 0.86rem;
  color: rgba(23, 37, 84, 0.75);
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(37, 132, 228, 0.18);
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 700;
}

.workspace {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1.5rem;
  padding: 2rem 1.5rem 2.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.workspace-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 0 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  align-items: stretch;
}

.workspace-body {
  display: grid;
  grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
  gap: 1.5rem;
  width: 100%;
  align-items: start;
}

.stepper {
  display: flex;
  gap: 0.85rem;
  background-color: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: 0.75rem 0.85rem;
  box-shadow: 0 24px 42px -32px rgba(15, 23, 42, 0.18);
}

.step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background-color: rgba(248, 250, 252, 0.8);
  color: rgba(31, 41, 55, 0.68);
  transition: border-color 0.2s ease, background-color 0.2s ease,
    box-shadow 0.2s ease, color 0.2s ease;
}

.step-index {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background-color: rgba(14, 165, 233, 0.12);
  color: #0c4a6e;
}

.step-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.step-active {
  background: linear-gradient(130deg, rgba(14, 165, 233, 0.18), rgba(59, 130, 246, 0.2));
  border-color: rgba(37, 132, 228, 0.45);
  color: #0f172a;
  box-shadow: 0 18px 30px -28px rgba(37, 132, 228, 0.4);
}

.step-active .step-index {
  background-color: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
}

.step-completed {
  background-color: rgba(237, 242, 255, 0.9);
  border-color: rgba(59, 130, 246, 0.18);
  color: #2563eb;
  box-shadow: none;
}

.step-completed .step-index {
  background-color: rgba(191, 219, 254, 0.75);
  color: #1d4ed8;
}

.workspace-tip {
  margin: 0 0 0 0.25rem;
  font-size: 0.9rem;
  color: rgba(31, 41, 55, 0.6);
}

.controls-column {
  flex: 0 0 360px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.panel-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 92px;
}

.panel {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 1.35rem 1.45rem;
  box-shadow: 0 30px 48px -32px rgba(15, 23, 42, 0.24);
  border: 1px solid rgba(226, 232, 240, 0.7);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.panel-title {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.panel-heading-text {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.92);
}

.panel-header .button-text {
  padding-inline: 0;
}

.panel-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.settings-body {
  gap: 1.25rem;
}

.file-chips {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.file-chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background-color: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
}

.subheader {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.subheader-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(17, 24, 39, 0.94);
}

.subheader-meta {
  font-size: 0.8rem;
  color: rgba(71, 85, 105, 0.75);
}

.cluster {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.settings-advanced {
  border-top: 1px solid rgba(203, 213, 225, 0.7);
  padding-top: 0.75rem;
}

.settings-advanced summary {
  cursor: pointer;
  font-weight: 600;
  color: #2563eb;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.settings-advanced summary::-webkit-details-marker {
  display: none;
}

.settings-advanced .cluster {
  margin-top: 0.6rem;
}

.dropzone {
  margin: 0 auto;
  width: 100%;
  padding: 2.6rem 1.5rem;
  border: 2px dashed rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
  background: rgba(59, 130, 246, 0.06);
}

.dropzone:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.45);
  outline-offset: 2px;
}

.dropzone.dragover {
  border-color: #2563eb;
  background-color: rgba(59, 130, 246, 0.16);
  box-shadow: 0 18px 32px -24px rgba(37, 99, 235, 0.35);
}

.dropzone-icon {
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.dropzone-icon svg {
  width: 56px;
  height: 56px;
  display: block;
}

.dropzone-default {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.dropzone-preview {
  display: none;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  justify-content: center;
}

.dropzone-preview-icon {
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dropzone-preview-icon svg {
  width: 40px;
  height: 40px;
  display: block;
}

.dropzone-preview-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  text-align: left;
  min-width: 0;
}

.dropzone-preview-name {
  font-weight: 600;
  font-size: 1rem;
  color: #0f172a;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropzone-preview-meta {
  font-size: 0.85rem;
  color: rgba(30, 41, 59, 0.65);
}

.dropzone.has-file {
  border: 2px solid rgba(37, 99, 235, 0.45);
  background: rgba(226, 239, 255, 0.6);
  padding-inline: 1.25rem;
}

.dropzone.has-file .dropzone-default {
  display: none;
}

.dropzone.has-file .dropzone-preview {
  display: flex;
}

.dropzone-text {
  font-weight: 600;
  font-size: 1.05rem;
}

.dropzone-subtext {
  font-size: 0.87rem;
  color: rgba(31, 41, 55, 0.62);
}

.dropzone-hint {
  font-size: 0.82rem;
  color: rgba(31, 41, 55, 0.5);
}

.dropzone.has-file .dropzone-preview-icon {
  color: #0f172a;
}

.dropzone.has-file .dropzone-preview-name {
  color: #0f172a;
}

.dropzone.has-file .dropzone-preview-meta {
  color: rgba(15, 23, 42, 0.6);
}

.summary-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-label {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: rgba(31, 41, 55, 0.55);
}

.summary-value {
  margin: 0.25rem 0 0;
  font-weight: 600;
  word-break: break-word;
  font-size: 1rem;
  color: rgba(17, 24, 39, 0.92);
}

.summary-meta {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(31, 41, 55, 0.62);
}

.upload-summary {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.summary-advanced summary {
  cursor: pointer;
  font-weight: 600;
  color: #2563eb;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.summary-advanced {
  margin-top: 0.25rem;
}

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

.button {
  appearance: none;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  background-color: rgba(51, 65, 85, 0.08);
  color: inherit;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px -16px rgba(15, 23, 42, 0.35);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.button-primary {
  background-color: #2563eb;
  color: #f8fafc;
  box-shadow: 0 12px 28px -20px rgba(37, 99, 235, 0.55);
}

.button-primary:hover:not(:disabled) {
  box-shadow: 0 14px 32px -18px rgba(37, 99, 235, 0.62);
  filter: brightness(1.02);
}

.button-secondary {
  background-color: rgba(37, 132, 228, 0.12);
  color: #1d4ed8;
  border: 1px solid rgba(37, 132, 228, 0.28);
}

.button-secondary:hover:not(:disabled) {
  background-color: rgba(37, 132, 228, 0.18);
  box-shadow: 0 12px 24px -18px rgba(79, 70, 229, 0.28);
}

.button-secondary:focus-visible {
  outline: 3px solid rgba(191, 219, 254, 0.8);
  outline-offset: 2px;
}

.button-primary:focus-visible {
  outline: 3px solid rgba(191, 219, 254, 0.8);
  outline-offset: 2px;
}

.button-text {
  background-color: transparent;
  color: #2563eb;
  padding-inline: 0.5rem;
}

.button-text:disabled {
  color: rgba(37, 99, 235, 0.36);
  cursor: default;
  pointer-events: none;
}

.button-chip {
  background-color: rgba(37, 99, 235, 0.08);
  color: #1e3a8a;
  font-weight: 600;
}

.button-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.control-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-block: 0.25rem 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.control-section:first-of-type {
  padding-top: 0;
}

.control-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.section-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(31, 41, 55, 0.8);
}

.section-meta {
  font-size: 0.75rem;
  color: rgba(71, 85, 105, 0.75);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(31, 41, 55, 0.72);
  letter-spacing: 0.01em;
}

.form-field-inline {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.form-field-inline .field-label {
  flex: 0 0 auto;
}

.form-field-inline select {
  flex: 1;
  min-width: 0;
}

.color-field,
.slider-field,
.font-size-field {
  margin-bottom: 0;
}

.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.5rem 0.65rem;
  font-size: 0.95rem;
  background-color: rgba(255, 255, 255, 0.92);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%231f2937' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 14px;
  padding-right: 2.2rem;
}

.form-field textarea {
  resize: vertical;
  min-height: 96px;
  font-size: 1rem;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  border-color: rgba(14, 165, 233, 0.55);
  box-shadow: 0 0 0 3px rgba(191, 219, 254, 0.6);
  outline: none;
}

.form-field.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.color-field .color-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.color-field input[type="color"] {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #ffffff;
  padding: 0;
  cursor: pointer;
}

.color-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(31, 41, 55, 0.7);
  padding-inline: 0.5rem;
}

.slider-field .slider-control {
  --slider-padding-inline: 0.75rem;
  --slider-value-percent: 0;
  --slider-track-width: calc(100% - var(--slider-padding-inline) * 2);
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 1.1rem var(--slider-padding-inline) 0.85rem;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
}

.slider-field input[type="range"] {
  --slider-fill-color: #2563eb;
  --slider-track-color: rgba(37, 99, 235, 0.2);
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 6px;
  margin: 0;
  border-radius: 999px;
  border: none;
  outline: none;
  background: transparent;
  cursor: pointer;
}

.slider-field input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(
    to right,
    var(--slider-fill-color) 0%,
    var(--slider-fill-color) calc(var(--slider-value-percent, 0) * 100%),
    var(--slider-track-color) calc(var(--slider-value-percent, 0) * 100%),
    var(--slider-track-color) 100%
  );
}

.slider-field input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(
    to right,
    var(--slider-fill-color) 0%,
    var(--slider-fill-color) calc(var(--slider-value-percent, 0) * 100%),
    var(--slider-track-color) calc(var(--slider-value-percent, 0) * 100%),
    var(--slider-track-color) 100%
  );
}

.slider-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  background: #2563eb;
  box-shadow: 0 10px 18px -12px rgba(15, 23, 42, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  margin-top: -6px;
}

.slider-field input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  background: #2563eb;
  box-shadow: 0 10px 18px -12px rgba(15, 23, 42, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  margin-top: -6px;
}

.slider-field input[type="range"]:focus-visible::-webkit-slider-thumb,
.slider-field input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.05);
  box-shadow: 0 16px 28px -14px rgba(37, 99, 235, 0.55);
}

.slider-field input[type="range"]:focus-visible::-moz-range-thumb,
.slider-field input[type="range"]:active::-moz-range-thumb {
  transform: scale(1.05);
  box-shadow: 0 16px 28px -14px rgba(37, 99, 235, 0.55);
}

.slider-value {
  position: absolute;
  top: 1rem;
  left: calc(
    var(--slider-padding-inline) +
      var(--slider-value-percent, 0) * var(--slider-track-width)
  );
  transform: translate(-50%, -125%);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(31, 41, 55, 0.72);
  background: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 12px 24px -18px rgba(15, 23, 42, 0.55);
  pointer-events: none;
  transition: transform 0.12s ease;
}


.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.style-grid {
  grid-template-columns: minmax(0, 1fr) minmax(10px, auto);
  align-items: end;
}

.style-font-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, auto);
  gap: 0.75rem;
  align-items: end;
}

.style-font-group .form-field {
  margin-bottom: 0;
}

.style-font-field select {
  width: 100%;
}

.style-font-size-field input {
  text-align: center;
}

.style-color-field {
  align-self: end;
  justify-self: end;
  max-width: 140px;
  margin-bottom: 0;
}

.style-color-field .field-label {
  margin-bottom: 0.3rem;
}

.style-color-field .color-input {
  width: 44px;
}

.slider-field-stacked {
  margin-top: 1rem;
  width: 100%;
}

.slider-field-stacked .field-label {
  margin-bottom: 0.4rem;
}

.form-grid-balanced {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.preview-column {
  position: sticky;
  top: 92px;
  align-self: flex-start;
  width: 100%;
}

.preview-shell {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 1.35rem 1.5rem 1.5rem;
  border: 1px solid rgba(203, 213, 225, 0.55);
  box-shadow: 0 34px 60px -38px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: clamp(620px, 72vh, 900px);
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-actions {
  display: flex;
  gap: 0.75rem;
}

.preview-frame {
  flex: 1;
  background-color: rgba(226, 232, 240, 0.45);
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: auto;
  padding: 1rem;
  min-height: clamp(540px, 66vh, 820px);
  height: clamp(540px, 66vh, 820px);
}

.preview-object {
  display: block;
  width: 100%;
  height: clamp(520px, 66vh, 820px);
  min-height: clamp(520px, 66vh, 820px);
  border: none;
  transform-origin: top left;
  transform: scale(1);
}

.preview-empty {
  margin: auto;
  text-align: center;
  color: rgba(31, 41, 55, 0.6);
}

.preview-hint {
  font-size: 0.9rem;
}

.page-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.app-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  background-color: #ffffff;
}

.app-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  font-size: 0.9rem;
  color: rgba(30, 41, 59, 0.65);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: rgba(31, 41, 55, 0.68);
}

.status-label {
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-link {
  color: rgba(37, 99, 235, 0.85);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-link:hover,
.footer-link:focus-visible {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .hero-stage {
    padding: 2.5rem 1.25rem;
  }

  .hero-card {
    padding: 2.25rem 2rem;
  }

  .workspace {
    padding: 1.5rem;
  }

  .workspace-body {
    display: flex;
    flex-direction: column;
  }

  .workspace-header {
    position: sticky;
    top: 0.75rem;
    z-index: 2;
  }

  .panel-stack {
    position: static;
  }

  .preview-column {
    position: static;
  }

  .panel {
    border-radius: 16px;
  }

  .preview-shell {
    padding: 1.2rem;
    border-radius: 18px;
    min-height: auto;
    height: auto;
  }

  .stepper {
    flex-direction: column;
  }

  .controls-column {
    flex-direction: column;
    flex: none;
  }

  .app-footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .style-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    column-gap: 0.75rem;
  }

  .style-font-group {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .style-color-field {
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }

  .slider-field-stacked {
    margin-top: 0.65rem;
  }
}

@media (max-width: 640px) {
  .hero-stage {
    padding: 2rem 1rem;
  }

  .hero-card {
    padding: 1.75rem 1.35rem;
    gap: 1.25rem;
  }

  .trust-points {
    grid-template-columns: 1fr;
  }

  .app-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .zoom-controls {
    justify-content: center;
  }

  .preview-actions {
    flex-direction: column;
  }

  .preview-frame {
    min-height: 360px;
    height: 360px;
  }

  .color-input {
    width: 40px;
  }

  .offset-inputs {
    grid-template-columns: 1fr;
  }

  .preview-object {
    height: 320px;
    min-height: 320px;
  }

  .workspace {
    padding: 1.5rem 1.25rem 2rem;
    border-radius: 18px;
  }

  .panel {
    padding: 1.1rem 1.2rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: stretch;
  }

  .style-grid {
    grid-template-columns: 1fr;
  }

  .style-font-group {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .style-color-field {
    justify-self: stretch;
  }

  .style-color-field .color-input {
    width: 40px;
  }

  .form-field-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .form-field-inline .field-label {
    min-width: 0;
  }

  .form-field-inline select {
    width: 100%;
  }

  .slider-field-stacked {
    margin-top: 0.5rem;
  }
}
.font-size-field input {
  max-width: 64px;
  text-align: center;
}
.color-input input[type="color"] {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0;
  background: transparent;
}

.color-input {
  width: 40px;
  display: inline-block;
}

.offset-fieldset {
  border: none;
  padding: 0;
  margin: 0.4rem 0 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.offset-fieldset legend {
  margin: 0;
  padding: 0;
}

.offset-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.offset-input {
  margin: 0;
}

.offset-axis {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(31, 41, 55, 0.55);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.toggle-title {
  font-weight: 600;
  color: rgba(15, 23, 42, 0.85);
}

.toggle-subtitle {
  font-size: 0.85rem;
  color: rgba(71, 85, 105, 0.75);
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
}

.toggle-switch input {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.toggle-switch input:focus-visible + .toggle-track {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(148, 163, 184, 0.4);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
  transition: transform 0.2s ease;
}

.toggle-switch input:checked + .toggle-track {
  background: linear-gradient(90deg, #2563eb, #4338ca);
}

.toggle-switch input:checked + .toggle-track::after {
  transform: translateX(22px);
}

/* FAQ Section */
.faq-section {
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.8), rgba(243, 244, 246, 0.9));
  border-top: 1px solid rgba(226, 232, 240, 0.7);
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-title {
  margin: 0 0 2.5rem 0;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: #1f2937;
  letter-spacing: -0.025em;
}

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

.faq-item {
  background-color: #ffffff;
  box-shadow: 0 20px 32px -24px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(226, 232, 240, 0.7);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 24px 40px -20px rgba(15, 23, 42, 0.25);
  transform: translateY(-2px);
}

.faq-item[open] {
  box-shadow: 0 24px 40px -20px rgba(15, 23, 42, 0.25);
}

.faq-question {
  padding: 0.4rem 1.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.faq-question:hover {
  background-color: rgba(248, 250, 252, 0.8);
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: #6b7280;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
  color: #2563eb;
}

.faq-item[open] .faq-question {
  border-bottom-color: rgba(226, 232, 240, 0.5);
  background-color: rgba(248, 250, 252, 0.6);
}

.faq-answer {
  padding: 1rem 1.5rem;
  color: #4b5563;
  line-height: 1.7;
  animation: slideDown 0.2s ease;
}

.faq-answer p {
  margin: 0;
  font-size: 1rem;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FAQ Responsive Design */
@media (max-width: 1024px) {
  .faq-section {
    padding: 3rem 1.25rem;
  }
  
  .faq-title {
    font-size: 2.25rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 640px) {
  .faq-section {
    padding: 2.5rem 1rem;
  }
  
  .faq-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .faq-question {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
  }
  
  .faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
  }
  
  .faq-question::after {
    font-size: 1.25rem;
    margin-left: 0.75rem;
  }
}
