:root {
  --ink: #151515;
  --muted: #625f58;
  --paper: #f4f0e7;
  --surface: #fffdf8;
  --white: #ffffff;
  --line: #d8d1c4;
  --line-strong: #b8ad9c;
  --gold: #a56a14;
  --gold-soft: #efe2c8;
  --red: #b63c2c;
  --green: #126b4a;
  --line-green: #06c755;
  --shadow: 0 18px 44px rgba(39, 31, 20, 0.09);
  --max: 1180px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

body,
button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  background: #111;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  background: #111;
}

.header-inner {
  width: min(calc(100% - 36px), var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  text-decoration: none;
}

.brand img {
  width: 58px;
  height: 42px;
  object-fit: contain;
}

.brand span {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.brand strong {
  font-size: 20px;
  letter-spacing: 0.18em;
}

.brand small {
  color: #cfc6b6;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: #e9e3d9;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #fff;
}

.header-line {
  min-height: 44px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8c9ae;
  border-radius: 7px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.hero {
  padding: 42px 0 34px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(330px, 0.8fr) minmax(0, 1.25fr);
  gap: 32px;
  align-items: stretch;
}

.hero-copy {
  padding: 26px 0 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.17;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(39px, 4vw, 50px);
  font-weight: 950;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 900;
}

h3 {
  font-size: 25px;
}

.hero-lead {
  max-width: 31em;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.button {
  min-height: 50px;
  padding: 11px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  color: #fff;
  background: #171717;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #303030;
}

.button-secondary {
  border-color: var(--line-strong);
  background: transparent;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: #f0ece3;
}

.button-line {
  color: #fff;
  background: var(--line-green);
}

.text-link,
.style-start,
.copy-button {
  min-height: 44px;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
  color: var(--ink);
  background: transparent;
  font-weight: 850;
  text-decoration: none;
}

.hero-price {
  width: 100%;
  margin-top: auto;
  padding-top: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 0 16px;
  border-top: 1px solid var(--line);
}

.hero-price > span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.hero-price strong {
  line-height: 1;
  font-size: 40px;
  letter-spacing: -0.05em;
}

.hero-price strong small {
  margin: 0 3px;
  font-size: 14px;
  letter-spacing: 0;
}

.hero-price em {
  grid-column: 1 / -1;
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.hero-looks {
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.hero-look {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ddd;
}

.hero-look-main {
  grid-row: 1 / 3;
}

.hero-look img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-look figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  color: #fff;
  background: rgba(17, 17, 17, 0.82);
  backdrop-filter: blur(6px);
}

.hero-look figcaption strong {
  font-size: 16px;
}

.hero-look figcaption span {
  color: #e7dcc9;
  font-size: 13px;
}

.price-strip {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.price-strip-inner {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
}

.price-strip-inner > div {
  min-height: 96px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.price-strip-inner > div:first-child {
  padding-left: 0;
}

.price-strip-inner > div:nth-child(4) {
  border-right: 0;
}

.price-strip-inner span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.price-strip-inner strong {
  font-size: 25px;
  line-height: 1.25;
}

.price-strip-inner strong small {
  margin-left: 2px;
  font-size: 13px;
}

.price-title strong {
  font-size: 20px;
}

.price-strip-inner > p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.section {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
  padding: 90px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.compact-heading {
  max-width: 700px;
}

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

.style-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.style-item > img {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: cover;
}

.style-copy {
  padding: 20px 20px 22px;
}

.style-copy > p {
  margin: 0 0 4px;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
}

.style-copy h3 {
  margin-bottom: 8px;
}

.style-copy > span {
  min-height: 52px;
  display: block;
  color: var(--muted);
  font-size: 16px;
}

.style-start {
  margin-top: 12px;
}

.invitation {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto 34px;
  padding: 30px 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: end;
  border-top: 1px solid var(--line-strong);
}

.invitation h2 {
  margin-bottom: 0;
}

.invitation > p {
  margin: 0 0 5px;
  color: var(--muted);
}

.workbench-section {
  padding: 72px max(18px, calc((100vw - var(--max)) / 2));
  color: #f7f3eb;
  background: #111;
}

.workbench-heading {
  max-width: var(--max);
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: end;
}

.workbench-heading h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 3vw, 42px);
}

.workbench-heading > p {
  margin: 0 0 4px;
  color: #c9c0b2;
  font-size: 16px;
}

.workbench {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  overflow: clip;
  border: 1px solid #393733;
  border-radius: var(--radius);
  background: #1a1a19;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.control-panel {
  padding: 30px 32px 32px;
  border-right: 1px solid #393733;
  background: #f8f5ee;
  color: var(--ink);
}

.control-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 5px 12px;
}

.control-intro strong {
  font-size: 20px;
}

.control-intro small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.product-chip {
  padding: 4px 8px;
  border: 1px solid #bd9f6c;
  border-radius: 999px;
  color: #77511a;
  font-size: 12px;
  font-weight: 900;
}

.control-group {
  min-width: 0;
  margin: 24px 0 0;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.control-group legend {
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  font-size: 17px;
  font-weight: 900;
}

.control-group legend span {
  width: 28px;
  height: 28px;
  margin-right: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: #1a1a1a;
  font-size: 14px;
}

.text-field {
  margin-bottom: 14px;
  display: block;
}

.text-field > span {
  margin-bottom: 6px;
  display: block;
  font-size: 15px;
  font-weight: 850;
}

.text-field > span small {
  color: var(--muted);
  font-weight: 600;
}

.text-field input,
.quantity-input-row input {
  width: 100%;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.text-field input:focus,
.quantity-input-row input:focus {
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(165, 106, 20, 0.13);
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.choice-row label {
  min-width: 0;
  cursor: pointer;
}

.choice-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-row span {
  min-height: 48px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.choice-row input:checked + span {
  border-color: #151515;
  color: #fff;
  background: #151515;
}

.choice-row input:focus-visible + span {
  outline: 3px solid rgba(165, 106, 20, 0.28);
  outline-offset: 2px;
}

.file-field {
  min-height: 52px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  cursor: pointer;
  background: #fff;
}

.file-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.file-button {
  min-height: 36px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  color: #fff;
  background: #252525;
  font-size: 14px;
  font-weight: 850;
}

#file-name {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo-control > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.quantity-input-row {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 12px;
}

.quantity-input-row > label {
  position: relative;
}

.quantity-input-row input {
  padding-right: 42px;
  font-weight: 900;
}

.quantity-input-row label em {
  position: absolute;
  top: 12px;
  right: 13px;
  color: var(--muted);
  font-style: normal;
}

.quantity-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.quantity-shortcuts button {
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  cursor: pointer;
  background: #fff;
  font-weight: 850;
}

.quantity-shortcuts button.is-active {
  border-color: #151515;
  color: #fff;
  background: #151515;
}

.price-estimate {
  margin-top: 12px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-left: 3px solid var(--gold);
  background: #eee6d7;
}

.price-estimate span {
  color: var(--muted);
  font-size: 13px;
}

.price-estimate strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
}

.form-message {
  min-height: 29px;
  margin: 16px 0 4px;
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
}

.generate-button {
  width: 100%;
}

.generate-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.form-footnote {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.preview-panel {
  min-width: 0;
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 94px;
}

.preview-toolbar {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.preview-toolbar > div:first-child {
  display: flex;
  flex-direction: column;
}

.preview-kicker {
  color: #a9a196;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

#preview-mode-label {
  font-size: 18px;
}

.side-tabs {
  padding: 3px;
  display: flex;
  border: 1px solid #4a4742;
  border-radius: 7px;
}

.side-tabs button {
  min-width: 68px;
  min-height: 40px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  color: #c9c0b2;
  background: transparent;
  font-size: 14px;
  font-weight: 850;
}

.side-tabs button[aria-selected="true"] {
  color: #151515;
  background: #f5f0e6;
}

.preview-canvas {
  min-height: 450px;
  padding: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #373531;
  border-radius: 8px;
  background: #f7f5f0;
}

.idle-preview,
.result-preview,
.loading-preview {
  width: 100%;
}

.garment-view,
.result-view {
  margin: 0;
  text-align: center;
}

.garment-view img,
.result-view img {
  width: min(100%, 405px);
  margin: 0 auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.garment-view span,
.result-view figcaption {
  margin-top: 8px;
  display: block;
  color: #5f5a52;
  font-size: 13px;
  font-weight: 800;
}

.idle-preview > p {
  max-width: 32em;
  margin: 12px auto 0;
  color: #6e675e;
  font-size: 13px;
  text-align: center;
}

.loading-preview {
  padding: 70px 20px;
  color: #302d29;
  text-align: center;
}

.loading-preview strong {
  display: block;
  font-size: 20px;
}

.loading-preview p {
  margin: 6px 0 0;
  color: #6e675e;
  font-size: 14px;
}

.loading-mark {
  width: 30px;
  height: 30px;
  margin: 0 auto 16px;
  display: block;
  border: 3px solid rgba(165, 106, 20, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.preview-status {
  padding: 16px 2px 4px;
}

.preview-status strong {
  display: block;
  font-size: 18px;
}

.preview-status p {
  margin: 4px 0 0;
  color: #bdb4a7;
  font-size: 14px;
}

.preview-status[data-kind="ready"] strong {
  color: #78d7ac;
}

.preview-status[data-kind="warning"] strong,
.preview-status[data-kind="human"] strong {
  color: #f0bf66;
}

.result-meta {
  margin: 12px 0 0;
  padding: 12px 0;
  display: grid;
  gap: 7px;
  border-top: 1px solid #3b3833;
  border-bottom: 1px solid #3b3833;
}

.result-meta div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
}

.result-meta dt {
  color: #aaa095;
  font-size: 13px;
}

.result-meta dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-actions,
.retry-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.retry-actions {
  align-items: center;
}

.line-section {
  max-width: var(--max);
  margin: 30px auto 0;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1.15fr);
  gap: 34px;
  align-items: center;
  border: 1px solid #393733;
  border-radius: var(--radius);
  background: #1a1a19;
}

.line-copy h3 {
  margin-bottom: 12px;
  font-size: 30px;
}

.line-copy > p:last-child {
  margin: 0;
  color: #bdb4a7;
  font-size: 15px;
}

.line-state {
  min-height: 166px;
  padding: 20px;
  border: 1px solid #3c3934;
  border-radius: 8px;
  background: #111;
}

.line-loading {
  display: grid;
  place-content: center;
  text-align: center;
}

.line-loading p {
  margin: 0;
  color: #c8c0b4;
}

.line-handoff {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  align-items: center;
}

.line-handoff > img {
  width: 132px;
  padding: 6px;
  background: #fff;
}

.line-handoff p {
  margin: 10px 0 2px;
  color: #c7beb1;
  font-size: 13px;
}

.line-handoff small {
  margin-top: 6px;
  display: block;
  color: #a9a095;
  font-size: 12px;
}

.copy-button {
  min-height: 34px;
  padding: 4px 0;
  color: #fff;
  font-size: 13px;
}

.line-error strong {
  color: #efb15e;
}

.line-error p {
  color: #c7beb1;
}

.line-complete {
  display: flex;
  align-items: center;
  gap: 18px;
}

.line-complete > span {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111;
  background: #73d9a9;
  font-size: 28px;
  font-weight: 900;
}

.line-complete strong {
  font-size: 20px;
}

.line-complete p {
  margin: 4px 0 0;
  color: #c7beb1;
  font-size: 14px;
}

.proof-section {
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100vw - var(--max)) / 2));
  padding-left: max(18px, calc((100vw - var(--max)) / 2));
  overflow: hidden;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(230px, 1fr));
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.proof-strip figure {
  min-width: 230px;
  margin: 0;
  scroll-snap-align: start;
}

.proof-strip img {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: cover;
  border-radius: 7px;
}

.proof-strip figcaption {
  padding: 8px 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.how-section {
  padding-top: 30px;
}

.how-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.how-list li {
  padding: 24px 0;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}

.how-list li > span {
  color: var(--gold);
  font-size: 15px;
  font-weight: 900;
}

.how-list strong {
  font-size: 22px;
}

.how-list p {
  margin: 4px 0 0;
  color: var(--muted);
}

.faq-section {
  padding-top: 30px;
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  min-height: 66px;
  padding: 16px 42px 16px 0;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  font-size: 19px;
  font-weight: 900;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  font-size: 28px;
  font-weight: 400;
}

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

.faq-list details p {
  max-width: 770px;
  margin: -4px 0 22px;
  color: var(--muted);
}

.closing {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto 80px;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  border-top: 2px solid #1a1a1a;
  border-bottom: 1px solid var(--line);
}

.closing h2 {
  max-width: 770px;
  margin: 0;
}

.site-footer {
  min-height: 150px;
  padding: 34px max(18px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  color: #e9e3d9;
  background: #111;
}

.footer-brand span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.footer-brand strong {
  font-size: 17px;
  letter-spacing: 0;
}

.footer-brand small {
  font-size: 12px;
}

.site-footer > p {
  margin: 0;
  color: #aaa196;
  font-size: 13px;
}

.site-footer > a {
  font-size: 14px;
  font-weight: 850;
}

:focus-visible {
  outline: 3px solid #d19b45;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .header-line {
    margin-left: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-price {
    margin-top: 30px;
  }

  .hero-looks {
    min-height: 480px;
  }

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

  .control-panel {
    border-right: 0;
    border-bottom: 1px solid #393733;
  }

  .preview-panel {
    position: static;
  }

  .line-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 17.5px;
  }

  html {
    scroll-padding-top: 74px;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    width: min(calc(100% - 24px), var(--max));
    min-height: 64px;
    gap: 12px;
  }

  .brand img {
    width: 48px;
    height: 36px;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand small {
    display: none;
  }

  .header-line {
    min-height: 44px;
    padding: 7px 11px;
    font-size: 14px;
  }

  .hero {
    padding-top: 26px;
  }

  .hero-inner,
  .section,
  .invitation,
  .closing,
  .price-strip-inner {
    width: min(calc(100% - 24px), var(--max));
  }

  h1 {
    font-size: clamp(36px, 11vw, 43px);
  }

  h2 {
    font-size: clamp(30px, 9vw, 38px);
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    flex: 1 1 auto;
  }

  .hero-looks {
    min-height: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 310px 190px;
  }

  .hero-look-main {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .hero-look figcaption {
    padding: 8px 9px;
  }

  .hero-look figcaption span {
    display: none;
  }

  .price-strip-inner {
    grid-template-columns: 1fr 1fr;
  }

  .price-strip-inner > div {
    min-height: 84px;
    padding: 14px 12px;
  }

  .price-strip-inner > div:first-child {
    padding-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .price-strip-inner > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .price-strip-inner > div:nth-child(3) {
    padding-left: 0;
  }

  .price-strip-inner > p {
    font-size: 13px;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

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

  .style-item {
    display: grid;
    grid-template-columns: 42% 58%;
  }

  .style-item > img {
    height: 100%;
    aspect-ratio: auto;
  }

  .style-copy {
    padding: 18px;
  }

  .style-copy h3 {
    font-size: 22px;
  }

  .style-copy > span {
    min-height: 0;
    font-size: 14px;
  }

  .invitation {
    margin-bottom: 18px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .workbench-section {
    padding-top: 54px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .workbench-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .control-panel {
    padding: 24px 18px 26px;
  }

  .choice-row {
    grid-template-columns: 1fr;
  }

  .choice-row span {
    justify-content: flex-start;
    padding-left: 14px;
  }

  .quantity-input-row {
    grid-template-columns: 104px 1fr;
  }

  .price-estimate {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    padding: 18px 14px 22px;
  }

  .preview-canvas {
    min-height: 340px;
    padding: 10px;
  }

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

  .result-actions .button,
  .retry-actions .button {
    width: 100%;
  }

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

  .line-section {
    padding: 20px 16px;
  }

  .line-handoff {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .line-handoff > img {
    margin: 0 auto;
  }

  .proof-section {
    padding-right: 12px;
    padding-left: 12px;
  }

  .how-list li {
    grid-template-columns: 44px 1fr;
    gap: 12px;
  }

  .closing {
    margin-bottom: 50px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .closing .button {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 390px) {
  .hero-looks {
    grid-template-rows: 270px 155px;
  }

  .hero-look figcaption {
    font-size: 13px;
  }

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

  .style-item > img {
    aspect-ratio: 1.35 / 1;
  }

  .quantity-input-row {
    grid-template-columns: 1fr;
  }

  .preview-toolbar {
    align-items: flex-start;
  }

  .side-tabs button {
    min-width: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
