:root {
  color-scheme: light;
  --bg: #f5f5f3;
  --panel: rgba(255, 255, 255, 0.74);
  --ink: #111111;
  --muted: #626262;
  --muted-strong: #414141;
  --muted-soft: #767672;
  --line: rgba(17, 17, 17, 0.11);
  --soft: rgba(17, 17, 17, 0.045);
  --focus: #000000;
  --error: #b42318;
  --positive: #28a745;
  --positive-border: rgba(40, 167, 69, 0.68);
  --positive-line: var(--positive-border);
  --positive-inset: rgba(40, 167, 69, 0.24);
  --positive-soft: rgba(40, 167, 69, 0.1);
  --positive-highlight: rgba(40, 167, 69, 0.055);
  --positive-highlight-border: rgba(40, 167, 69, 0.22);
  --recommend: var(--positive);
  --selected: rgba(255, 255, 255, 0.9);
  --selected-overlay: rgba(17, 17, 17, 0.032);
  --surface: rgba(255, 255, 255, 0.58);
  --button-text: #ffffff;
  --placeholder: #8a8a85;
  --hover-line: rgba(17, 17, 17, 0.24);
  --panel-border: rgba(17, 17, 17, 0.075);
  --selected-inset: rgba(17, 17, 17, 0.12);
  --recommend-border: var(--positive-border);
  --logo-filter: none;
  --watermark-filter: none;
  --watermark-opacity: 0.032;
  --card-bg: rgba(255, 255, 255, 0.58);
  --card-base-shadow: 0 1px 0 rgba(255, 255, 255, 0.62);
  --card-hover-shadow: 0 16px 38px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.66);
  --card-selected-shadow: 0 20px 48px rgba(0, 0, 0, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  --quote-shadow: 0 40px 110px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  --advice-bg: rgba(255, 255, 255, 0.72);
  --advice-border: rgba(17, 17, 17, 0.1);
  --advice-shadow: 0 18px 46px rgba(0, 0, 0, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  --field-focus-shadow: 0 0 0 4px rgba(17, 17, 17, 0.045), 0 12px 26px rgba(0, 0, 0, 0.04);
  --button-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  --button-hover-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  --mobile-bar-bg: rgba(255, 255, 255, 0.76);
  --mobile-bar-shadow: 0 18px 48px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.065), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --canvas-empty-bg: #f7f8f7;
  --canvas-empty-text: #414141;
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0b0c;
  --panel: rgba(25, 25, 27, 0.76);
  --ink: #f2f2f2;
  --muted: #a7a7a7;
  --muted-strong: #d2d2d2;
  --muted-soft: #8e8e8e;
  --line: rgba(242, 242, 242, 0.1);
  --soft: rgba(242, 242, 242, 0.055);
  --focus: #f2f2f2;
  --selected: rgba(34, 34, 36, 0.92);
  --selected-overlay: rgba(255, 255, 255, 0.035);
  --surface: rgba(255, 255, 255, 0.055);
  --button-text: #0e0e0e;
  --placeholder: #777777;
  --hover-line: rgba(242, 242, 242, 0.22);
  --panel-border: rgba(242, 242, 242, 0.09);
  --selected-inset: rgba(242, 242, 242, 0.14);
  --recommend-border: var(--positive-border);
  --logo-filter: invert(1);
  --watermark-filter: invert(1);
  --watermark-opacity: 0.018;
  --card-bg: rgba(255, 255, 255, 0.052);
  --card-base-shadow: 0 1px 0 rgba(255, 255, 255, 0.035);
  --card-hover-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --card-selected-shadow: 0 20px 46px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --quote-shadow: 0 30px 78px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  --advice-bg: rgba(255, 255, 255, 0.06);
  --advice-border: rgba(242, 242, 242, 0.105);
  --advice-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --field-focus-shadow: 0 0 0 4px rgba(242, 242, 242, 0.06), 0 14px 32px rgba(0, 0, 0, 0.26);
  --button-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  --button-hover-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
  --mobile-bar-bg: rgba(26, 26, 28, 0.74);
  --mobile-bar-shadow: 0 18px 52px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow: 0 22px 58px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  --canvas-empty-bg: #19191b;
  --canvas-empty-text: #d2d2d2;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

@keyframes canvas-ready-pop {
  0% {
    opacity: 0.66;
    transform: translateY(3px) scale(0.992);
  }

  56% {
    opacity: 1;
    transform: translateY(-1px) scale(1.018);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes mobile-total-soft-change {
  0% {
    opacity: 0.7;
    transform: translateY(2px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes style-select-feedback {
  0% {
    transform: translateY(-1px) scale(1);
    box-shadow: inset 0 0 0 1px var(--positive-inset), var(--card-selected-shadow);
  }

  42% {
    transform: translateY(-2px) scale(1.018);
    box-shadow: inset 0 0 0 1px var(--positive-border), 0 22px 48px rgba(40, 167, 69, 0.18);
  }

  100% {
    transform: translateY(-1px) scale(1);
    box-shadow: inset 0 0 0 1px var(--positive-inset), var(--card-selected-shadow);
  }
}

@keyframes service-select-feedback {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: var(--card-base-shadow);
  }

  45% {
    transform: translateY(-2px) scale(1.018);
    border-color: var(--positive-border);
    box-shadow: 0 18px 42px rgba(40, 167, 69, 0.13), inset 0 0 0 1px var(--positive-inset);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes preview-style-feedback {
  0% {
    opacity: 0.82;
    transform: translateY(1px) scale(0.996);
  }

  55% {
    opacity: 1;
    transform: translateY(-1px) scale(1.006);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes upload-start-outline {
  0% {
    opacity: 0;
    stroke-dashoffset: 1;
  }

  5% {
    opacity: 1;
    stroke-dashoffset: 1;
  }

  56% {
    opacity: 1;
    stroke-dashoffset: 0;
  }

  91% {
    opacity: 1;
    stroke-dashoffset: 0;
  }

  100% {
    opacity: 0;
    stroke-dashoffset: 0;
  }
}

@keyframes service-error-attention {
  0% {
    border-color: var(--panel-border);
    box-shadow: var(--card-base-shadow);
  }

  42%,
  100% {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.055), inset 0 0 0 1px var(--error);
  }
}

@keyframes service-error-exit {
  0% {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.055), inset 0 0 0 1px var(--error);
  }

  100% {
    border-color: var(--panel-border);
    box-shadow: var(--card-base-shadow);
  }
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[hidden] {
  display: none !important;
}

button,
input,
textarea {
  font: inherit;
}

.app {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.back-home-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
  transition: color 220ms var(--ease-soft), opacity 220ms var(--ease-soft);
}

.back-home-link:hover {
  color: var(--ink);
}

.back-home-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
  border-radius: 8px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 26px;
}

.brand-link {
  display: inline-flex;
  width: 72px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  animation: reveal-up 280ms var(--ease-out) both;
}

.brand-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.brand-logo {
  display: block;
  width: 72px;
  height: 32px;
  filter: var(--logo-filter);
  object-fit: contain;
  object-position: center;
}

button.theme-toggle {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 32px;
  min-width: 0;
  height: 32px;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  overflow: hidden;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 280ms var(--ease-soft), border-color 260ms var(--ease-soft),
    box-shadow 260ms var(--ease-soft), opacity 260ms var(--ease-soft);
}

button.theme-toggle:hover {
  border-color: rgba(0, 0, 0, 0.28);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.1);
  transform: rotate(0deg);
}

button.theme-toggle[aria-pressed="true"] {
  transform: rotate(180deg);
}

button.theme-toggle[aria-pressed="true"]:hover {
  transform: rotate(180deg);
}

.half {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.half.black {
  background: #000;
}

.half.white {
  background: #fff;
}

html[data-theme="dark"] button.theme-toggle {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] button.theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28);
}

.intro {
  position: relative;
  isolation: isolate;
  margin-bottom: 30px;
  overflow: hidden;
}

.intro > :not(.hero-watermark) {
  position: relative;
  z-index: 1;
}

.hero-watermark {
  position: absolute;
  display: block;
  top: 68%;
  right: -300px;
  z-index: 0;
  width: min(62vw, 690px);
  height: auto;
  max-width: none;
  filter: var(--watermark-filter);
  object-fit: contain;
  object-position: center;
  opacity: var(--watermark-opacity);
  pointer-events: none;
  transform: translateY(-50%) rotate(0deg);
  user-select: none;
}

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

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 4.8rem;
  line-height: 0.94;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-subline {
  max-width: 520px;
  margin-bottom: 6px;
  color: var(--muted-strong);
  font-size: 0.95rem;
  font-weight: 720;
  line-height: 1.45;
}

.hero-benefits {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  max-width: 680px;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.hero-benefits li {
  min-height: 32px;
  padding: 8px 10px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 780;
  line-height: 1.25;
}

.hero-cta {
  box-sizing: border-box;
  max-width: 100%;
  margin-top: 22px;
  margin-right: 0;
  margin-left: 0;
  padding: 0 22px;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}

.hero-actions .hero-cta {
  margin-top: 0;
}

.hero-actions .hero-cta:not(.hero-cta--secondary) {
  border-color: var(--positive);
  background: var(--positive);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(40, 167, 69, 0.22);
}

.hero-actions .hero-cta:not(.hero-cta--secondary):hover {
  border-color: var(--positive);
  background: #22963e;
  box-shadow: 0 18px 42px rgba(40, 167, 69, 0.28);
}

.hero-cta--secondary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--button-text);
  box-shadow: var(--button-shadow);
}

.hero-cta--secondary:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--button-text);
  box-shadow: var(--button-hover-shadow);
}

.free-cover-tool {
  position: relative;
  display: grid;
  gap: 22px;
  margin: -2px 0 30px;
  padding: 22px;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.free-cover-start-outline {
  position: absolute;
  inset: -8px;
  z-index: 2;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  overflow: visible;
  pointer-events: none;
}

.free-cover-start-outline rect {
  fill: none;
  opacity: 0;
  stroke: var(--positive-line);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
}

.free-cover-tool.is-starting-cover-tool .free-cover-start-outline rect {
  animation: upload-start-outline 2850ms var(--ease-soft) both;
}

.free-cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.82fr);
  gap: 22px;
  align-items: start;
}

.free-cover-controls,
.free-cover-preview-card,
.free-cover-settings {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.free-cover-mobile-preview-card {
  display: none;
}

.cover-editor-modal,
.cover-editor-modal__card,
.cover-editor-controls {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.cover-editor-modal__card:focus {
  outline: none;
}

.cover-editor-modal__close,
.cover-editor-modal__card > h2,
.cover-editor-modal__preview,
.cover-editor-modal__actions {
  display: none;
}

.free-cover-dropzone {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 118px;
  padding: 18px;
  border: 1px dashed var(--hover-line);
  border-radius: 18px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out),
    transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.free-cover-dropzone:hover,
.free-cover-dropzone.is-dragging {
  border-color: var(--positive-border);
  background: var(--positive-highlight);
  box-shadow: inset 0 0 0 1px var(--positive-inset);
  transform: translateY(-1px);
}

.dropzone.is-loading h2 {
  color: var(--positive);
}

.dropzone.is-loading p {
  color: var(--positive);
}

.free-cover-dropzone strong,
.free-cover-dropzone small {
  display: block;
}

.free-cover-dropzone .dropzone__icon {
  position: static;
  width: 28px;
  height: 28px;
  font-size: 1rem;
}

.free-cover-dropzone strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 830;
}

.free-cover-dropzone small {
  max-width: 360px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
}

.free-cover-loading-message {
  display: block;
  max-width: 360px;
  margin-top: 10px;
  color: var(--positive);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1.35;
}

.free-cover-loading-message[hidden] {
  display: none;
}

.cover-adjustments {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 38%),
    var(--surface);
}

.cover-adjustments__head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.cover-adjustments__head .panel-label {
  margin: 0;
}

.cover-reset-button {
  width: auto;
  min-height: 30px;
  min-width: 0;
  padding: 0 10px;
  border-color: var(--panel-border);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted-strong);
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0;
  box-shadow: none;
  white-space: nowrap;
}

.cover-reset-button:hover {
  border-color: var(--positive-border);
  background: var(--positive-highlight);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--positive-inset);
}

.cover-range-control,
.audio-start {
  display: grid;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.cover-range-control {
  padding: 10px 11px 9px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.cover-range-control__top {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.cover-range-value {
  min-width: 54px;
  padding: 4px 8px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--selected-overlay);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.cover-range-shell {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 28px;
}

.cover-adjustments input[type="range"] {
  width: 100%;
  height: 28px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  --range-progress: 0%;
  --range-track: rgba(127, 127, 127, 0.18);
  --range-tick: rgba(127, 127, 127, 0.28);
  --range-thumb-size: 20px;
}

.cover-adjustments input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--positive) 0 var(--range-progress), transparent var(--range-progress) 100%),
    var(--range-track);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.cover-adjustments input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border: 2px solid var(--positive);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 32%, rgba(255, 255, 255, 0.9) 0 18%, transparent 19%),
    var(--selected);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16), 0 0 0 4px rgba(40, 167, 69, 0.08);
  -webkit-appearance: none;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.cover-adjustments input[type="range"]:hover::-webkit-slider-thumb,
.cover-adjustments input[type="range"]:focus-visible::-webkit-slider-thumb {
  transform: scale(1.06);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2), 0 0 0 6px rgba(40, 167, 69, 0.12);
}

.cover-adjustments input[type="range"]::-moz-range-track {
  height: 8px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--range-track);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.cover-adjustments input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--positive);
}

.cover-adjustments input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid var(--positive);
  border-radius: 50%;
  background: var(--selected);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16), 0 0 0 4px rgba(40, 167, 69, 0.08);
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.cover-adjustments input[type="range"]:hover::-moz-range-thumb,
.cover-adjustments input[type="range"]:focus-visible::-moz-range-thumb {
  transform: scale(1.06);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2), 0 0 0 6px rgba(40, 167, 69, 0.12);
}

.parental-toggle {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 780;
}

.parental-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--positive);
}

.parental-controls {
  display: grid;
  gap: 14px;
}

.segmented-control,
.position-grid {
  display: grid;
  gap: 8px;
}

.segmented-control {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.segmented-control span,
.position-grid span {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 0.8rem;
  font-weight: 780;
  text-align: center;
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out),
    color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.segmented-control input:checked + span,
.position-grid input:checked + span {
  border-color: var(--positive-border);
  background: var(--positive-highlight);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--positive-inset);
}

.free-cover-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.free-cover-actions .button--cta,
.free-cover-actions button.secondary {
  width: 100%;
  min-height: 48px;
  align-self: stretch;
  max-width: none;
  margin: 0;
  padding: 0 18px;
  line-height: 1.15;
  white-space: nowrap;
}

.free-cover-status,
.free-cover-note,
.free-cover-service-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
}

.free-cover-service-note {
  padding: 12px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted-strong);
}

.free-cover-status:empty {
  display: none;
}

.free-cover-save-link {
  display: inline-flex;
  width: fit-content;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1;
  text-decoration: none;
  box-shadow: var(--card-base-shadow);
}

.free-cover-save-link:hover {
  border-color: var(--hover-line);
  background: var(--soft);
  transform: translateY(-1px);
}

.free-cover-save-link[hidden] {
  display: none;
}

.free-cover-preview-card {
  padding: 16px;
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  background: var(--card-bg);
  box-shadow: var(--card-base-shadow);
}

.free-cover-preview {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background:
    linear-gradient(45deg, rgba(127, 127, 127, 0.14) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(127, 127, 127, 0.14) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(127, 127, 127, 0.14) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(127, 127, 127, 0.14) 75%);
  background-color: var(--canvas-empty-bg);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
  aspect-ratio: 1;
}

.free-cover-preview canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  pointer-events: none;
  touch-action: auto;
  user-select: none;
}

.free-cover-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--canvas-empty-text);
  text-align: center;
}

.free-cover-empty.is-hidden {
  display: none;
}

.free-cover-empty span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin: 0 auto 10px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

.free-cover-empty p {
  max-width: 230px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.45;
}

.cover-next-panel {
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid var(--positive-border);
  border-radius: 18px;
  background: var(--positive-highlight);
  box-shadow: inset 0 0 0 1px var(--positive-inset);
}

.cover-next-panel h3,
.cover-next-panel p {
  margin: 0;
}

.cover-next-panel h3 {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 840;
}

.cover-next-panel p {
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 660;
  line-height: 1.45;
}

.cover-next-cta {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--button-text);
  box-shadow: var(--button-shadow);
  text-align: center;
}

.cover-next-cta__line {
  display: inline;
}

.cover-next-cta__line + .cover-next-cta__line::before {
  content: " ";
}

.cover-next-cta:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--button-text);
  box-shadow: var(--button-hover-shadow);
  transform: translateY(-2px);
}

.how-it-works {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: -6px 0 30px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.how-it-works h2 {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
}

.how-it-works ol {
  counter-reset: workflow-step;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-it-works li {
  counter-increment: workflow-step;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 9px 11px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.2;
  transition: border-color 220ms var(--ease-out), background 220ms var(--ease-out),
    color 220ms var(--ease-out), box-shadow 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.how-it-works li::before {
  content: counter(workflow-step);
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--button-text);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
  transition: border-color 220ms var(--ease-out), background 220ms var(--ease-out),
    color 220ms var(--ease-out), box-shadow 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.how-it-works li.is-complete {
  border-color: var(--positive-border);
  background:
    linear-gradient(135deg, rgba(40, 167, 69, 0.08), transparent 72%),
    var(--surface);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--positive-inset), 0 10px 24px rgba(40, 167, 69, 0.12);
}

.how-it-works li.is-complete::before {
  background: var(--positive);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.12), 0 5px 12px rgba(40, 167, 69, 0.2);
}

.service-positioning {
  display: grid;
  gap: 8px;
  max-width: 780px;
  margin: -6px 0 30px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-positioning h2 {
  max-width: 620px;
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 830;
  letter-spacing: 0;
}

.service-positioning p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 670;
  line-height: 1.5;
}

.what-you-get {
  display: grid;
  gap: 14px;
  margin: 0 0 30px;
}

.what-you-get h2 {
  margin: -4px 0 0;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 820;
  letter-spacing: 0;
}

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

.value-cards article {
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--card-bg);
  box-shadow: var(--card-base-shadow);
}

.value-cards h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 820;
  letter-spacing: 0;
}

.value-cards p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.45;
}

.intro h1,
.intro .hero-subline,
.intro .hero-benefits,
.intro .hero-cta {
  animation: reveal-up 280ms var(--ease-out) both;
}

.intro h1 {
  animation-delay: 0ms;
}

@media (min-width: 769px) {
  .desktop-nowrap {
    white-space: nowrap;
  }

  .hero-benefits {
    flex-wrap: nowrap;
    align-items: center;
    width: max-content;
    max-width: 100%;
    gap: 7px;
  }

  .hero-benefits li {
    flex: 0 1 auto;
    min-height: 30px;
    padding: 7px 9px;
    white-space: nowrap;
    font-size: 0.72rem;
  }
}

.intro .hero-subline {
  animation-delay: 120ms;
}

.intro .hero-benefits {
  animation-delay: 145ms;
}

.intro .hero-cta {
  animation-delay: 160ms;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 30px;
  align-items: start;
}

.selector,
.quote-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  backdrop-filter: blur(12px) saturate(135%);
}

.selector {
  grid-column: 1;
  grid-row: 1;
  padding: 30px;
}

.upload-panel {
  position: relative;
}

.upload-start-outline {
  position: absolute;
  inset: -8px;
  z-index: 2;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  overflow: visible;
  pointer-events: none;
}

.upload-start-outline rect {
  fill: none;
  opacity: 0;
  stroke: var(--positive-line);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
}

.upload-panel.is-starting-upload .upload-start-outline rect {
  animation: upload-start-outline 2850ms var(--ease-soft) both;
}

.upload-panel.is-starting-upload .dropzone {
  filter: brightness(1.015);
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-1.5px);
}

.upload-panel.is-ending-upload .dropzone {
  filter: none;
  box-shadow: var(--card-base-shadow);
  transform: translateY(0);
}

.quote-panel {
  grid-column: 2;
  grid-row: 1;
  position: static;
  top: 24px;
  padding: 32px;
  animation: reveal-up 280ms var(--ease-out) 220ms both;
  box-shadow: var(--quote-shadow);
}

.section-heading,
.step-heading,
.preview-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 6px;
  margin-bottom: 28px;
  text-align: left;
}

.section-heading > div,
.step-heading > div,
.preview-heading > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
  gap: 6px;
}

.section-heading h2,
.step-heading h2,
.preview-heading h3 {
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 780;
  line-height: 1.16;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.section-heading > p:not(.step-kicker),
.step-heading > p:not(.step-kicker),
.preview-heading > p:not(.step-kicker) {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 620;
  line-height: 1.52;
  text-align: left;
}

.section-heading--compact {
  margin-bottom: 22px;
}

.section-heading--compact h2 {
  font-size: 1.06rem;
}

.step-kicker {
  margin: 0;
  color: var(--muted-soft);
  font-size: 0.66rem;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.upload-stack {
  display: grid;
  gap: 18px;
}

.cover-ready-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--positive-border);
  border-radius: 16px;
  background:
    linear-gradient(140deg, var(--positive-highlight), transparent 64%),
    var(--card-bg);
  box-shadow: inset 0 0 0 1px var(--positive-inset), var(--card-base-shadow);
  animation: reveal-up 240ms var(--ease-out) both;
}

.cover-ready-state[hidden] {
  display: none;
}

.cover-ready-state__icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--positive);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 0 0 5px rgba(40, 167, 69, 0.12), 0 10px 22px rgba(40, 167, 69, 0.18);
}

.cover-ready-state h3,
.cover-ready-state p {
  margin: 0;
}

.cover-ready-state h3 {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.15;
}

.cover-ready-state p {
  margin-top: 4px;
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 660;
  line-height: 1.42;
}

.cover-ready-state__change {
  min-height: 38px;
  min-width: 0;
  padding: 0 13px;
  white-space: nowrap;
}

.canvas-step {
  margin-top: 0;
}

.step-heading {
  margin-bottom: 22px;
}

.dropzone {
  position: relative;
  display: grid;
  min-height: 268px;
  align-content: center;
  gap: 18px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--card-bg);
  cursor: pointer;
  box-shadow: var(--card-base-shadow);
  padding: 50px 20px 20px;
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px) saturate(125%);
  backdrop-filter: blur(10px) saturate(125%);
  transition: transform 860ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 860ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 860ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 860ms cubic-bezier(0.22, 1, 0.36, 1),
    background 860ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 860ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms var(--ease-out);
  will-change: transform;
}

.dropzone:hover,
.dropzone.is-dragging,
.dropzone.is-loaded,
.dropzone.is-loading {
  border-color: var(--hover-line);
  box-shadow: var(--card-hover-shadow);
  transform: scale(1.01);
}

.dropzone.is-loaded,
.dropzone.is-loading {
  background: linear-gradient(var(--selected-overlay), var(--selected-overlay)), var(--selected);
  box-shadow: inset 0 0 0 1px var(--selected-inset), var(--card-selected-shadow);
  transform: translateY(-1px) scale(1.01);
}

.dropzone__icon {
  position: absolute;
  inset: 18px auto auto 18px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  opacity: 0.38;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.dropzone:hover .dropzone__icon,
.dropzone.is-loaded .dropzone__icon {
  opacity: 0.9;
}

.dropzone.is-loaded .dropzone__icon {
  animation: canvas-ready-pop 240ms var(--ease-out) both;
}

.dropzone h2 {
  align-self: end;
  margin: 24px 0 0;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: 0;
}

.dropzone p {
  max-width: 440px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.45;
}

.dropzone__hint {
  color: var(--muted-soft) !important;
  font-size: 0.82rem !important;
  font-weight: 620 !important;
}

.cover-preview {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--card-bg);
  box-shadow: var(--card-base-shadow);
  padding: 12px;
  -webkit-backdrop-filter: blur(10px) saturate(125%);
  backdrop-filter: blur(10px) saturate(125%);
  animation: reveal-up 240ms var(--ease-out) both;
}

.cover-preview img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--soft);
}

.cover-preview__label,
.cover-preview__name {
  margin: 0;
}

.cover-preview__label {
  color: var(--ink);
  font-weight: 750;
}

.cover-preview__name {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.style-section {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.style-look-outline {
  position: absolute;
  z-index: 3;
  overflow: visible;
  pointer-events: none;
}

.style-look-outline rect {
  fill: none;
  opacity: 0;
  stroke: var(--positive-line);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
}

.style-section.is-guiding-look .style-look-outline rect {
  animation: upload-start-outline 2850ms var(--ease-soft) both;
}

.style-section .section-heading {
  margin-bottom: 0;
}

.style-choice-stack {
  display: grid;
  gap: 18px;
}

.style-choice-group {
  display: grid;
  gap: 10px;
}

.style-choice-group h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 820;
  letter-spacing: 0;
}

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

.style-option {
  display: grid;
  min-height: 92px;
  align-content: start;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--card-bg);
  box-shadow: var(--card-base-shadow);
  cursor: pointer;
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out),
    background 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.style-option:hover,
.style-option:focus-within,
.style-option.is-selected {
  border-color: var(--hover-line);
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-1px);
}

.style-option.is-selected {
  border-color: var(--positive-border);
  background:
    linear-gradient(140deg, var(--positive-highlight), transparent 58%),
    var(--selected);
  box-shadow: inset 0 0 0 1px var(--positive-inset), var(--card-selected-shadow);
}

.style-option.is-style-feedback {
  animation: style-select-feedback 360ms var(--ease-out) both;
}

.style-option span {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 780;
  line-height: 1.15;
}

.style-option small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
}

.service-section {
  display: grid;
  gap: 14px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.service-section .section-heading {
  margin-bottom: 0;
}

.service-options {
  display: grid;
  gap: 10px;
}

.service-option {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--card-bg);
  color: var(--ink);
  box-shadow: var(--card-base-shadow);
  cursor: pointer;
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out),
    background 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.service-option:hover,
.service-option:focus-within {
  border-color: var(--hover-line);
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-1px);
}

.service-option.is-selected {
  border-color: var(--positive-border);
  background:
    linear-gradient(140deg, var(--positive-highlight), transparent 58%),
    var(--selected);
  box-shadow: inset 0 0 0 1px var(--positive-inset), var(--card-selected-shadow);
}

.service-option.is-service-feedback {
  animation: service-select-feedback 420ms var(--ease-out) both;
}

.service-option.needs-attention {
  animation: service-error-attention 1450ms ease-in-out both;
}

.service-option.is-attention-exiting {
  animation: service-error-exit 520ms ease-out both;
}

.service-option span {
  display: grid;
  gap: 5px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 780;
  line-height: 1.25;
}

.service-option small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
}

.service-option strong {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 820;
}

.service-option--package {
  cursor: pointer;
  opacity: 0.9;
}

.service-option--package span {
  grid-column: 1;
  grid-row: 1;
}

.service-option--package strong {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: end;
}

.service-badge {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--positive-soft);
  color: var(--positive);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 820;
  line-height: 1;
  text-transform: uppercase;
}

.service-option--package.is-selected {
  opacity: 1;
}

.audio-section {
  display: grid;
  gap: 14px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.audio-section .section-heading {
  margin-bottom: 0;
}

.audio-upload,
.audio-file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--card-bg);
  box-shadow: var(--card-base-shadow);
}

.audio-upload__main,
.audio-file > div:not(.audio-actions) {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.audio-upload__label,
.audio-file__label {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 780;
  line-height: 1.25;
}

.audio-file__label span {
  font-weight: 720;
  overflow-wrap: anywhere;
}

.audio-upload__status,
.audio-file__name {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.audio-file {
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
  padding: 12px;
  border-color: var(--positive-highlight-border);
  background:
    linear-gradient(140deg, var(--positive-highlight), transparent 62%),
    var(--card-bg);
}

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

.audio-actions button.secondary {
  width: 100%;
  min-height: 34px;
  min-width: 0;
  padding: 0 10px;
  font-size: 0.74rem;
  text-align: center;
  white-space: nowrap;
}

@media (min-width: 769px) {
  .audio-file {
    gap: 8px;
    padding: 10px 12px;
  }

  .audio-file > div:not(.audio-actions) {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 2px 12px;
  }

  .audio-file__label,
  .audio-file__name {
    line-height: 1.25;
  }

  .audio-file__name {
    justify-self: end;
    white-space: nowrap;
  }

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

  .audio-actions button.secondary {
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.74rem;
  }
}

.audio-preview-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.audio-preview-links[hidden] {
  display: none;
}

.audio-preview-links button.secondary {
  min-height: 36px;
  min-width: 0;
  padding: 0 12px;
  font-size: 0.78rem;
}

.audio-start {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: uppercase;
}

.audio-start input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 13px 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  text-transform: none;
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  transition: border-color 240ms var(--ease-out), background 240ms var(--ease-out),
    box-shadow 240ms var(--ease-out);
}

.audio-start input:focus-visible {
  border-color: var(--hover-line);
  outline: none;
  background: var(--panel);
  box-shadow: var(--field-focus-shadow), inset 0 0 0 1px var(--hover-line);
}

.audio-start span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
  text-transform: none;
}

.audio-advanced-toggle {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 720;
  line-height: 1.35;
}

.audio-advanced-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--positive);
  flex: 0 0 auto;
}

.audio-advanced-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.audio-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.45;
}

.project-ready {
  display: grid;
  gap: 11px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--positive-highlight-border);
  border-radius: 14px;
  background:
    linear-gradient(140deg, var(--positive-highlight), transparent 62%),
    var(--card-bg);
  box-shadow: var(--card-base-shadow);
}

.project-ready h2 {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 820;
  letter-spacing: 0;
}

.project-ready ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-ready li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.project-ready li span {
  flex: 0 0 auto;
  color: var(--positive);
  font-weight: 900;
}

.addon-option {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--card-bg);
  color: var(--ink);
  box-shadow: var(--card-base-shadow);
  cursor: pointer;
  transition: border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out),
    transform 220ms var(--ease-out);
}

.addon-option:hover {
  border-color: var(--hover-line);
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-1px);
}

.addon-option.is-selected {
  border-color: var(--positive-border);
  background:
    linear-gradient(140deg, var(--positive-highlight), transparent 58%),
    var(--selected);
  box-shadow: inset 0 0 0 1px var(--positive-inset), var(--card-selected-shadow);
}

.addon-option input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: var(--positive);
}

.addon-option span {
  display: grid;
  gap: 5px;
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.3;
}

.addon-option small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
}

.generate-final,
.request-submit {
  margin-top: 18px;
}

.final-status {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
}

.cta-security {
  margin: 6px 0 0;
  color: var(--muted-strong);
  font-size: 0.8rem;
  font-weight: 760;
  line-height: 1.4;
}

.preview-panel {
  display: grid;
  justify-items: center;
  text-align: center;
}

.quote-topline {
  justify-self: start;
  display: inline-flex;
  max-width: 100%;
  min-height: 34px;
  align-items: center;
  margin: 0 0 24px;
  padding: 8px 11px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.quote-topline span {
  overflow-wrap: anywhere;
}

.mobile-style-picker {
  display: none;
}

.mobile-audio-player {
  display: none;
}

.mobile-audio-player button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

@media (min-width: 769px) {
  .canvas-frame .mobile-audio-player:not([hidden]) {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 42px;
    padding: 7px 8px 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(12, 14, 13, 0.62);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.7rem;
    font-weight: 780;
    line-height: 1;
    isolation: isolate;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
  }

  .mobile-audio-player__outline {
    position: absolute;
    inset: -4px;
    z-index: 0;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    overflow: visible;
    pointer-events: none;
  }

  .mobile-audio-player__outline rect {
    fill: none;
    opacity: 0;
    stroke: var(--positive-border);
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
  }

  .mobile-audio-player.is-guided .mobile-audio-player__outline rect {
    animation: upload-start-outline 1650ms var(--ease-soft) both;
  }

  .mobile-audio-player__meta,
  .mobile-audio-player__actions {
    position: relative;
    z-index: 1;
  }

  .mobile-audio-player__meta {
    display: grid;
    min-width: 0;
    gap: 3px;
    text-align: left;
  }

  .mobile-audio-player__name {
    min-width: 0;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-audio-player__status {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.64rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-audio-player__actions {
    display: inline-flex;
    gap: 5px;
    align-items: center;
  }

  .mobile-audio-player button {
    min-height: 29px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font: inherit;
    font-weight: 860;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-audio-player button[hidden] {
    display: none;
  }

  .mobile-audio-player button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.32);
  }
}

.canvas-frame {
  position: relative;
  width: min(100%, 356px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--card-selected-shadow);
  transform: translateZ(0);
}

.canvas-frame.is-preview-style-feedback {
  animation: preview-style-feedback 360ms var(--ease-out) both;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.canvas-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 28px;
  background:
    linear-gradient(140deg, var(--positive-highlight), transparent 52%),
    var(--canvas-empty-bg);
  color: var(--muted);
  pointer-events: none;
}

.canvas-empty.is-hidden {
  display: none;
}

.canvas-empty span {
  color: var(--positive);
  font-size: 3.45rem;
  font-weight: 820;
  line-height: 0.94;
  letter-spacing: 0;
}

.canvas-empty p {
  max-width: 250px;
  margin: 0 auto;
  color: var(--canvas-empty-text);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.45;
}

.preview-watermark {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  opacity: 1;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.canvas-frame.is-preview-ready .preview-watermark {
  display: block;
}

.preview-logo-note {
  max-width: 360px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 620;
  line-height: 1.4;
  text-align: center;
}

.preview-note {
  display: grid;
  gap: 5px;
  max-width: 390px;
  margin: 24px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.55;
  text-align: center;
}

.preview-note strong {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 820;
  line-height: 1.35;
}

.preview-note span {
  color: var(--muted);
}

.preview-free-note {
  max-width: 390px;
  margin: 14px auto 18px;
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 690;
  line-height: 1.45;
  text-align: center;
}

.out-now-preview {
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: none;
  gap: 22px;
  margin-top: 30px;
  padding-top: 28px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  animation: reveal-up 240ms var(--ease-out) both;
}

.out-now-preview__heading {
  width: 100%;
  margin-bottom: 0;
  padding-top: 0;
  border-top: 0;
}

.canvas-frame--out-now {
  width: min(100%, 356px);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--card-selected-shadow);
}

.panel-label {
  margin: 0;
  color: var(--positive);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.request-summary {
  display: grid;
  width: 100%;
  max-width: none;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--card-bg);
  box-shadow: var(--card-base-shadow);
  text-align: left;
}

.request-summary h3,
.request-summary p {
  margin: 0;
}

.request-summary h3 {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 780;
}

.request-summary dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.request-summary dl div {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 10px;
  align-items: baseline;
}

.request-summary dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 730;
}

.request-summary dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.request-reminder {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.45;
}

.button--cta,
.button.button--cta {
  width: 100%;
  max-width: 360px;
  margin-top: 20px;
  border-color: var(--positive);
  background: var(--positive);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(40, 167, 69, 0.22);
}

.button--cta:hover,
.button.button--cta:hover {
  border-color: var(--positive);
  background: #22963e;
  box-shadow: 0 18px 42px rgba(40, 167, 69, 0.28);
}

.button,
button,
.email-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  color: var(--button-text);
  cursor: pointer;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--button-shadow);
  transition: transform 200ms var(--ease-out), background 200ms var(--ease-out),
    color 200ms var(--ease-out), opacity 200ms var(--ease-out), box-shadow 200ms var(--ease-out),
    border-color 200ms var(--ease-out);
}

.hero-cta:hover,
.button--cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--button-hover-shadow);
}

.button--cta:hover {
  box-shadow: 0 18px 42px rgba(40, 167, 69, 0.28);
}

.hero-cta:active,
.button--cta:active {
  transform: scale(0.98);
  box-shadow: var(--button-shadow);
  transition-duration: 150ms;
}

.button:focus-visible,
button:focus-visible,
.dropzone:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

button.secondary {
  min-width: 92px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

button.secondary:hover {
  border-color: var(--hover-line);
  background: var(--soft);
  transform: translateY(-1px);
}

button:disabled,
button:disabled:hover {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.invoice-section {
  width: 100%;
  max-width: none;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--card-bg);
  box-shadow: var(--card-base-shadow);
  text-align: left;
}

.invoice-section.is-guided {
  border-color: var(--positive-border);
  box-shadow: inset 0 0 0 1px var(--positive-inset), var(--card-selected-shadow);
}

.invoice-section h2,
.invoice-grid label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.invoice-section h2 {
  margin-bottom: 7px;
}

.invoice-caption {
  margin-bottom: 7px !important;
  color: var(--muted) !important;
  font-size: 0.86rem !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
}

.invoice-guidance {
  margin: 0 0 12px !important;
  color: var(--muted) !important;
  font-size: 0.82rem !important;
  font-weight: 650 !important;
  line-height: 1.48 !important;
}

.invoice-required-note {
  margin: 0 0 14px !important;
  color: var(--muted) !important;
  font-size: 0.78rem !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
}

.required-mark {
  margin-left: 3px;
  color: var(--error);
  font-size: 0.78em;
  font-weight: 850;
}

.privacy-note {
  margin: 14px 0 0 !important;
  color: var(--muted) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}

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

.invoice-grid label {
  position: relative;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.invoice-grid label:has(input[required])::after {
  content: "*";
  position: absolute;
  top: calc(0.74rem + 30px);
  right: 14px;
  color: var(--error);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.68;
  pointer-events: none;
}

.invoice-grid input {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 13px 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  text-transform: none;
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  transition: border-color 240ms var(--ease-out), background 240ms var(--ease-out),
    box-shadow 240ms var(--ease-out), opacity 220ms var(--ease-out);
}

.invoice-grid input[required] {
  padding-right: 34px;
}

.invoice-full {
  grid-column: 1 / -1;
}

.invoice-grid input:focus-visible {
  border-color: var(--hover-line);
  outline: none;
  background: var(--panel);
  box-shadow: var(--field-focus-shadow), inset 0 0 0 1px var(--hover-line);
}

.invoice-grid input.is-invalid,
.invoice-grid input.is-error,
.invoice-grid input.needs-attention {
  border-color: rgba(180, 35, 24, 0.48);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.08);
}

.invoice-grid input.needs-attention {
  animation: service-error-attention 1450ms ease-in-out both;
}

.invoice-grid input.is-attention-exiting {
  animation: service-error-exit 520ms ease-out both;
}

.field-error {
  display: block;
  max-height: 0;
  margin-top: 0;
  color: var(--error);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
  opacity: 0;
  overflow: hidden;
  text-transform: none;
  transform: translateY(-2px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out),
    max-height 220ms var(--ease-out), margin-top 220ms var(--ease-out);
}

.field-error.is-visible {
  max-height: 72px;
  margin-top: 7px;
  opacity: 1;
  transform: translateY(0);
}

.request-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 18px;
}

.request-actions .button--cta {
  max-width: none;
  margin-top: 0;
}

.request-actions .secondary {
  margin: 0;
}

body.is-modal-open {
  overflow: hidden;
}

.request-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 8, 8, 0.34);
  -webkit-backdrop-filter: blur(14px) saturate(118%);
  backdrop-filter: blur(14px) saturate(118%);
}

.request-modal[hidden] {
  display: none;
}

.request-modal__card {
  position: relative;
  display: grid;
  width: min(100%, 480px);
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--quote-shadow);
  text-align: left;
  -webkit-backdrop-filter: blur(18px) saturate(132%);
  backdrop-filter: blur(18px) saturate(132%);
}

.request-modal__card:focus {
  outline: none;
}

.request-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  min-width: 0;
  height: 34px;
  min-height: 0;
  padding: 0;
  border-color: var(--panel-border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
  font-size: 1.05rem;
  line-height: 1;
}

.request-modal__card h2 {
  max-width: 360px;
  margin: 0;
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.12;
}

.request-modal__card p:not(.panel-label) {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.55;
}

.request-modal__list {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 14px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--card-bg);
  list-style: none;
}

.request-modal__list li {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.35;
}

.request-modal__list li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--positive);
}

.request-modal__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.request-modal__actions .button--cta {
  max-width: none;
  margin-top: 0;
}

.request-modal__actions .secondary {
  margin: 0;
}

.mobile-request-bar {
  display: none;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 32px 0 44px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 5px;
}

.site-footer__nav a {
  color: currentColor;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.site-footer__nav a:hover {
  color: var(--ink);
}

.site-footer .site-footer__lead {
  max-width: 720px;
  margin: 0 auto 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 860px) {
  .site-header {
    width: min(100% - 24px, 680px);
    padding-top: 22px;
  }

  .site-footer {
    width: min(100% - 24px, 680px);
  }

  .app {
    width: min(100% - 24px, 680px);
    padding: 28px 0 32px;
  }

  h1 {
    font-size: 3.7rem;
  }

  .hero-watermark {
    right: -150px;
    width: 420px;
    opacity: calc(var(--watermark-opacity) * 0.86);
  }
}

@media (max-width: 760px), (max-width: 860px) and (hover: none) and (pointer: coarse) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
  }

  @supports (overflow: clip) {
    html,
    body {
      overflow-x: clip;
    }
  }

  .site-header,
  .site-footer,
  .app,
  .intro,
  .workspace,
  .selector,
  .quote-panel,
  .free-cover-tool,
  .free-cover-grid,
  .free-cover-controls,
  .free-cover-mobile-preview-card,
  .free-cover-settings,
  .preview-panel,
  .canvas-frame,
  .canvas-frame--out-now,
  .request-modal,
  .request-modal__card,
  .cover-editor-modal,
  .cover-editor-modal__card {
    max-width: 100%;
    min-width: 0;
  }

  .intro,
  .canvas-frame,
  .canvas-frame--out-now {
    overflow-x: hidden;
  }

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

  .selector,
  .quote-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .quote-panel {
    position: static;
  }

  .mobile-request-bar {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 58px;
    padding: 10px 18px;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    background: var(--mobile-bar-bg);
    box-shadow: var(--mobile-bar-shadow);
    color: var(--ink);
    line-height: 1.25;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    transform: translateY(calc(100% + 18px));
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    will-change: transform, opacity;
    transition: transform 260ms var(--ease-out), opacity 240ms var(--ease-out),
      border-color 260ms var(--ease-out), box-shadow 260ms var(--ease-out), color 260ms var(--ease-out);
  }

  .mobile-request-total,
  .mobile-request-message {
    display: block;
  }

  .mobile-request-total {
    color: var(--ink);
    font-size: 1.12rem;
    font-weight: 860;
    transform-origin: center;
  }

  .mobile-request-total.is-soft-changing {
    animation: mobile-total-soft-change 260ms var(--ease-out) both;
  }

  .mobile-request-message {
    color: var(--muted-strong);
    font-size: 0.76rem;
    font-weight: 650;
  }

  .mobile-request-bar.is-empty .mobile-request-message {
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 800;
  }

  .mobile-request-bar.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  body.is-cover-editor-open .mobile-request-bar {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(calc(100% + 18px)) !important;
  }

  .mobile-request-bar.is-empty {
    border-color: rgba(220, 53, 69, 0.58);
    box-shadow: var(--mobile-bar-shadow), 0 0 0 3px rgba(220, 53, 69, 0.08);
  }

  .mobile-request-bar.is-standard {
    border-color: var(--line);
    box-shadow: var(--mobile-bar-shadow);
    color: var(--ink);
  }

  .mobile-request-bar.is-promo {
    border-color: var(--positive-border);
    box-shadow: var(--mobile-bar-shadow), 0 0 0 3px var(--positive-soft);
    color: var(--ink);
  }
}

@media (max-width: 768px) {
  body {
    line-height: 1.55;
  }

  .site-header {
    width: min(100% - 24px, 680px);
    padding-top: 18px;
  }

  .app {
    width: min(100% - 24px, 680px);
    padding: 22px 0 44px;
  }

  .intro {
    margin-bottom: 18px;
  }

  .hero-subline {
    max-width: 420px;
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .hero-benefits {
    gap: 6px;
    margin-top: 12px;
  }

  .hero-benefits li {
    min-height: 29px;
    padding: 7px 9px;
    font-size: 0.72rem;
  }

  .hero-cta {
    margin-top: 16px;
    min-height: 50px;
  }

  .hero-actions {
    display: grid;
    gap: 9px;
    margin-top: 16px;
  }

  .hero-actions .hero-cta {
    margin-top: 0;
  }

  .free-cover-tool {
    gap: 18px;
    margin-bottom: 20px;
    padding: 18px;
    border-radius: 18px;
  }

  .free-cover-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .free-cover-dropzone {
    grid-template-columns: 1fr;
    min-height: 142px;
    padding: 18px;
    text-align: left;
  }

  .free-cover-dropzone .dropzone__icon {
    position: static;
  }

  .free-cover-tool.has-cover-image .free-cover-dropzone {
    display: none;
  }

  .free-cover-mobile-preview-card:not([hidden]) {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    background: var(--card-bg);
    box-shadow: var(--card-base-shadow);
  }

  .free-cover-mobile-preview-head {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
  }

  .free-cover-mobile-preview-head .panel-label {
    margin: 0;
  }

  .free-cover-mobile-preview-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 9px;
  }

  .cover-edit-trigger,
  .free-cover-mobile-preview-actions button.secondary {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 11px;
    font-size: 0.74rem;
    white-space: nowrap;
  }

  .cover-edit-trigger {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--button-text);
    box-shadow: var(--button-shadow);
  }

  .free-cover-mobile-preview-card .free-cover-note {
    text-align: center;
  }

  .free-cover-preview-card {
    display: none;
  }

  .free-cover-settings {
    gap: 10px;
  }

  .cover-editor-modal {
    display: none;
  }

  .cover-editor-modal.is-open {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px calc(env(safe-area-inset-bottom, 0px) + 12px);
    background: rgba(8, 8, 8, 0.38);
    -webkit-backdrop-filter: blur(14px) saturate(118%);
    backdrop-filter: blur(14px) saturate(118%);
  }

  .cover-editor-modal__card {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: min(100%, 520px);
    max-height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px);
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px);
    gap: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 14px 14px;
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    background: var(--panel);
    color: var(--ink);
    box-shadow: var(--quote-shadow);
    -webkit-overflow-scrolling: touch;
    -webkit-backdrop-filter: blur(18px) saturate(132%);
    backdrop-filter: blur(18px) saturate(132%);
  }

  .cover-editor-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    width: 34px;
    min-width: 0;
    height: 34px;
    min-height: 0;
    place-items: center;
    padding: 0;
    border-color: var(--panel-border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    box-shadow: none;
    line-height: 1;
  }

  .cover-editor-modal__card > h2 {
    display: block;
    margin: 0;
    padding-right: 36px;
    color: var(--ink);
    font-size: 1.18rem;
    font-weight: 830;
    letter-spacing: 0;
    line-height: 1.1;
  }

  .cover-editor-modal__preview {
    display: block;
    flex: 0 0 auto;
    width: min(74%, 260px);
    width: min(74%, 260px, 34dvh);
    max-width: 100%;
    align-self: center;
    border-radius: 18px;
    margin: 0 auto 10px;
  }

  .cover-editor-modal__preview canvas {
    width: 100%;
    height: 100%;
  }

  .cover-editor-controls {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 11px;
    min-width: 0;
  }

  .cover-editor-modal__actions {
    display: grid;
    flex: 0 0 auto;
    padding-top: 2px;
    background: transparent;
  }

  .cover-editor-modal__actions .button--cta {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .cover-adjustments {
    gap: 0;
    padding: 12px 12px 10px;
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 46%),
      var(--surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }

  .cover-adjustments__head {
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
  }

  .cover-adjustments__head .panel-label {
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: none;
  }

  .cover-reset-button {
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    box-shadow: none;
  }

  .cover-range-control {
    gap: 6px;
    padding: 9px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .cover-range-control + .cover-range-control {
    border-top: 1px solid var(--line);
  }

  .cover-range-control__top {
    font-size: 0.76rem;
    font-weight: 820;
  }

  .cover-range-value {
    min-width: 50px;
    padding: 3px 8px;
    font-size: 0.68rem;
    background: var(--soft);
  }

  .cover-range-shell {
    min-height: 24px;
  }

  .cover-adjustments input[type="range"] {
    height: 24px;
    --range-thumb-size: 18px;
    --range-track: rgba(127, 127, 127, 0.18);
  }

  .cover-adjustments input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    border: 0;
  }

  .cover-adjustments input[type="range"]::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    margin-top: -7px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.14), 0 0 0 3px rgba(40, 167, 69, 0.07);
  }

  .cover-adjustments input[type="range"]:hover::-webkit-slider-thumb,
  .cover-adjustments input[type="range"]:focus-visible::-webkit-slider-thumb {
    transform: scale(1.04);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16), 0 0 0 4px rgba(40, 167, 69, 0.1);
  }

  .cover-adjustments input[type="range"]::-moz-range-track,
  .cover-adjustments input[type="range"]::-moz-range-progress {
    height: 4px;
    border: 0;
  }

  .cover-adjustments input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.14), 0 0 0 3px rgba(40, 167, 69, 0.07);
  }

  .cover-adjustments input[type="range"]:hover::-moz-range-thumb,
  .cover-adjustments input[type="range"]:focus-visible::-moz-range-thumb {
    transform: scale(1.04);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16), 0 0 0 4px rgba(40, 167, 69, 0.1);
  }

  .parental-toggle {
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.82rem;
  }

  .parental-controls {
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    background: var(--surface);
  }

  .parental-controls > div {
    display: grid;
    gap: 7px;
  }

  .free-cover-actions {
    grid-template-columns: 1fr;
  }

  .free-cover-actions .button--cta,
  .free-cover-actions button.secondary {
    width: 100%;
    white-space: normal;
  }

  .segmented-control span,
  .position-grid span {
    min-height: 38px;
    padding: 8px 7px;
    border-radius: 12px;
    font-size: 0.74rem;
  }

  .cover-next-cta {
    min-height: 56px;
    flex-direction: column;
    gap: 2px;
    padding: 0 18px;
    border-color: rgba(255, 255, 255, 0.18);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035)),
      rgba(17, 17, 17, 0.82);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 850;
    line-height: 1.08;
    white-space: normal;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(16px) saturate(128%);
    backdrop-filter: blur(16px) saturate(128%);
  }

  .cover-next-cta__line {
    display: block;
  }

  .cover-next-cta__line + .cover-next-cta__line::before {
    content: "";
  }

  .cover-next-cta:hover {
    border-color: rgba(255, 255, 255, 0.26);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.055)),
      rgba(17, 17, 17, 0.88);
    color: #ffffff;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }

  .cover-next-cta:active {
    transform: translateY(0) scale(0.985);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }

  html[data-theme="dark"] .cover-next-cta {
    border-color: rgba(255, 255, 255, 0.18);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045)),
      rgba(255, 255, 255, 0.08);
    color: var(--ink);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  html[data-theme="dark"] .cover-next-cta:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.065)),
      rgba(255, 255, 255, 0.115);
    color: var(--ink);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }

  .service-positioning {
    gap: 6px;
    margin-bottom: 22px;
    padding: 14px 0;
  }

  .service-positioning h2 {
    font-size: 1.02rem;
    line-height: 1.22;
  }

  .service-positioning p {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .how-it-works {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
    padding: 14px 0;
  }

  .how-it-works ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .how-it-works li {
    flex: 0 0 calc(50% - 4px);
    box-sizing: border-box;
    min-height: 48px;
    align-items: center;
    justify-content: flex-start;
    padding: 9px 10px;
    font-size: 0.74rem;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .what-you-get {
    gap: 10px;
    margin-bottom: 22px;
  }

  .value-cards {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .value-cards article {
    min-height: 0;
    padding: 14px;
  }

  .selector,
  .quote-panel {
    padding: 18px;
  }

  .workspace {
    gap: 18px;
  }

  .style-section {
    display: none;
  }

  .workspace > .style-section,
  .workspace > .service-section,
  .workspace > .audio-section,
  .workspace > .project-ready,
  .workspace > .request-summary,
  .workspace > .invoice-section {
    margin-top: 0;
    padding: 18px;
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(12px) saturate(135%);
    backdrop-filter: blur(12px) saturate(135%);
  }

  .workspace > .request-submit {
    margin-top: 0;
  }

  .cover-ready-state {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .cover-ready-state__change {
    grid-column: 1 / -1;
    width: 100%;
  }

  .workspace > .final-status,
  .workspace > .cta-security {
    margin: -6px auto 0;
    max-width: 420px;
    text-align: center;
  }

  .section-heading {
    gap: 7px;
    margin-bottom: 18px;
  }

  .section-heading > p:not(.step-kicker),
  .step-heading > p:not(.step-kicker),
  .preview-heading > p:not(.step-kicker) {
    max-width: none;
    line-height: 1.55;
  }

  h1 {
    font-size: 2.78rem;
    line-height: 0.98;
  }

  .hero-subline,
  .preview-note,
  .dropzone p {
    line-height: 1.55;
  }

  .hero-watermark {
    display: block;
    top: 68%;
    right: -112px;
    width: min(72vw, 330px);
    opacity: calc(var(--watermark-opacity) * 0.7);
    transform: translateY(-50%) rotate(0deg);
  }

  .dropzone {
    min-height: 210px;
    padding: 46px 14px 15px;
  }

  .dropzone__icon {
    inset: 16px auto auto 16px;
  }

  .dropzone h2 {
    margin-top: 16px;
    font-size: 1.02rem;
    line-height: 1.2;
  }

  .quote-topline {
    justify-self: start;
    display: inline-flex;
    justify-content: flex-start;
    width: auto;
    min-height: 34px;
    margin-bottom: 18px;
    line-height: 1.35;
  }

  .canvas-frame .mobile-style-picker:not([hidden]) {
    display: inline-flex;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    flex: 0 0 auto;
    min-width: 0;
    max-width: calc(100% - 20px);
    align-items: center;
    gap: 5px;
    padding: 5px 6px 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(12, 14, 13, 0.58);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    isolation: isolate;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    pointer-events: auto;
  }

  .mobile-style-picker__outline {
    position: absolute;
    inset: -4px;
    z-index: 0;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    overflow: visible;
    pointer-events: none;
  }

  .mobile-style-picker__outline rect {
    fill: none;
    opacity: 0;
    stroke: var(--positive-border);
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
  }

  .mobile-style-picker.is-guided .mobile-style-picker__outline rect {
    animation: upload-start-outline 1650ms var(--ease-soft) both;
  }

  .mobile-style-picker span,
  .mobile-style-picker select {
    position: relative;
    z-index: 1;
  }

  .canvas-frame .mobile-style-picker select {
    width: auto;
    min-width: 74px;
    min-height: 26px;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 5px 20px 5px 8px;
    background:
      linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.92) 50%) calc(100% - 12px) 11px / 5px 5px no-repeat,
      linear-gradient(135deg, rgba(255, 255, 255, 0.92) 50%, transparent 50%) calc(100% - 8px) 11px / 5px 5px no-repeat,
      rgba(255, 255, 255, 0.1);
    color: #fff;
    font: inherit;
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  }

  .canvas-frame .mobile-style-picker select:focus-visible {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  }

  .canvas-frame .mobile-style-picker option {
    background: #111;
    color: #fff;
  }

  .canvas-frame .mobile-audio-player:not([hidden]) {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    align-items: center;
    min-height: 38px;
    padding: 6px 7px 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(12, 14, 13, 0.6);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.68rem;
    font-weight: 780;
    line-height: 1;
    isolation: isolate;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
  }

  .mobile-audio-player__outline {
    position: absolute;
    inset: -4px;
    z-index: 0;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    overflow: visible;
    pointer-events: none;
  }

  .mobile-audio-player__outline rect {
    fill: none;
    opacity: 0;
    stroke: var(--positive-border);
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
  }

  .mobile-audio-player.is-guided .mobile-audio-player__outline rect {
    animation: upload-start-outline 1650ms var(--ease-soft) both;
  }

  .mobile-audio-player__meta,
  .mobile-audio-player__actions {
    position: relative;
    z-index: 1;
  }

  .mobile-audio-player__meta {
    display: grid;
    min-width: 0;
    gap: 3px;
    text-align: left;
  }

  .mobile-audio-player__name {
    min-width: 0;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-audio-player__status {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.62rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-audio-player__actions {
    display: inline-flex;
    gap: 5px;
    align-items: center;
  }

  .mobile-audio-player button {
    min-height: 28px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font: inherit;
    font-weight: 860;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-audio-player button[hidden] {
    display: none;
  }

  .mobile-audio-player button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.32);
  }

  .preview-note {
    margin-top: 18px;
  }

  .preview-panel {
    align-self: stretch;
  }

  .canvas-frame,
  .canvas-frame--out-now {
    width: min(100%, 390px);
  }

  .service-options {
    gap: 12px;
  }

  .service-option {
    min-height: 92px;
    padding: 16px;
    gap: 12px;
  }

  .service-option span {
    font-size: 0.96rem;
  }

  .service-option small {
    font-size: 0.82rem;
  }

  .service-option strong {
    font-size: 1.02rem;
  }

  .service-badge {
    padding: 5px 8px;
    font-size: 0.66rem;
  }

  .audio-upload,
  .audio-file {
    gap: 12px;
    padding: 14px;
  }

  .audio-start input {
    min-height: 52px;
    font-size: 1rem;
  }

  .audio-actions {
    gap: 7px;
  }

  .audio-actions button.secondary,
  .audio-preview-links button.secondary,
  .audio-upload button.secondary {
    min-height: 40px;
  }

  .audio-preview-links {
    gap: 9px;
  }

  .audio-preview-links button.secondary {
    flex: 1 1 180px;
  }

  .button,
  button,
  .email-button {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 52px;
    padding: 0 18px;
  }

  .hero-cta {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  button.secondary {
    min-width: 0;
  }

  body.is-instagram-browser .app,
  body.is-standalone-app .app {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 44px);
  }

  .site-footer {
    margin-top: 8px;
    padding: 22px 0 104px;
  }

  body.is-instagram-browser .mobile-request-bar,
  body.is-standalone-app .mobile-request-bar {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 84px);
  }

  body.is-instagram-browser .site-footer,
  body.is-standalone-app .site-footer {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 150px);
  }
}

@media (max-width: 768px) and (max-height: 700px) {
  .cover-editor-modal.is-open {
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 10px calc(env(safe-area-inset-bottom, 0px) + 8px);
  }

  .cover-editor-modal__card {
    max-height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 16px);
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 16px);
    gap: 9px;
    padding: 16px 12px 12px;
  }

  .cover-editor-modal__card > h2 {
    font-size: 1.08rem;
  }

  .cover-editor-modal__preview {
    width: min(68%, 220px);
    width: min(68%, 220px, 30dvh);
    margin-bottom: 6px;
    border-radius: 16px;
  }

  .cover-editor-controls {
    gap: 9px;
  }

  .cover-adjustments {
    padding: 10px 11px 8px;
  }

  .cover-range-control {
    padding: 7px 0;
  }

  .parental-toggle,
  .parental-controls {
    padding: 9px 10px;
  }

  .segmented-control span,
  .position-grid span {
    min-height: 34px;
    padding: 7px 6px;
  }
}

@media (max-width: 480px) {
  .site-header,
  .site-footer,
  .app {
    width: calc(100% - 24px);
  }

  .selector,
  .quote-panel {
    padding: 16px;
  }

  h1 {
    font-size: 2.22rem;
  }

  .dropzone {
    gap: 16px;
    min-height: 202px;
  }

  .dropzone h2 {
    font-size: 0.96rem;
  }

  .dropzone p {
    font-size: 0.9rem;
  }

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

  .request-summary dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .cover-preview {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .cover-preview img {
    width: 58px;
    height: 58px;
  }

  .canvas-frame {
    width: 100%;
  }

  .canvas-frame--out-now {
    width: 100%;
  }

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

  .audio-upload,
  .audio-file {
    grid-template-columns: 1fr;
  }

  .audio-advanced-fields {
    grid-template-columns: 1fr;
  }

  .audio-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .audio-preview-links {
    justify-content: stretch;
  }

  .audio-actions button.secondary {
    width: 100%;
    min-height: 40px;
  }

  .audio-preview-links button.secondary {
    width: 100%;
  }

  .mobile-request-bar {
    right: 10px;
    left: 10px;
    gap: 2px;
    padding: 10px 16px;
    border-radius: 999px;
  }

  .mobile-request-total {
    font-size: 1rem;
  }

  .mobile-request-message {
    font-size: 0.72rem;
  }

  .mobile-request-bar span {
    white-space: nowrap;
  }

  .request-actions {
    grid-template-columns: 1fr;
  }

  .request-modal {
    padding: 12px;
  }

  .request-modal__card {
    padding: 24px 18px 18px;
  }

  .request-modal__actions {
    grid-template-columns: 1fr;
  }

  .invoice-grid label:has(input[required])::after {
    top: calc(0.74rem + 30px);
  }
}

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

  .brand-link,
  .intro,
	  .dropzone,
	  .quote-panel,
	  .cover-preview,
	  .out-now-preview,
	  .request-summary {
	    animation: none !important;
	    opacity: 1;
	    transform: none;
	  }

	  .dropzone:hover,
	  .dropzone.is-dragging,
	  .dropzone.is-loaded,
	  .dropzone.is-loading,
	  .upload-panel.is-starting-upload .dropzone,
	  .upload-panel.is-ending-upload .dropzone,
	  .style-option,
	  .service-option,
	  .addon-option {
	    transform: none;
	  }
}
