:root {
  color-scheme: light;
  --background: oklch(0.97 0.008 80);
  --foreground: oklch(0.18 0.012 260);
  --card: oklch(1 0 0);
  --primary: oklch(0.20 0.015 260);
  --primary-foreground: oklch(0.97 0.008 80);
  --secondary: oklch(0.93 0.012 80);
  --muted: oklch(0.93 0.01 80);
  --muted-foreground: oklch(0.52 0.012 260);
  --accent: oklch(0.68 0.06 55);
  --border: oklch(0.88 0.01 80);
  --input: oklch(0.88 0.01 80);
  --ring: oklch(0.20 0.015 260);
  --destructive: oklch(0.55 0.18 25);
  --shadow-card:
    0 2px 16px -2px oklch(0.18 0.012 260 / 0.08),
    0 1px 3px -1px oklch(0.18 0.012 260 / 0.06);
  --shadow-elegant:
    0 4px 24px -4px oklch(0.18 0.012 260 / 0.12),
    0 1px 4px -1px oklch(0.18 0.012 260 / 0.08);
  --shadow-hover:
    0 8px 32px -8px oklch(0.18 0.012 260 / 0.18),
    0 2px 8px -2px oklch(0.18 0.012 260 / 0.1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 27px, oklch(0.85 0.008 80 / 0.28) 28px),
    radial-gradient(circle at 50% 0%, oklch(1 0 0 / 0.7), transparent 44rem);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button,
a {
  transition: color 200ms ease, background 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-header,
.site-footer,
.hero-section,
.content-section {
  width: min(1280px, calc(100vw - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  border-bottom: 1px solid oklch(0.88 0.01 80 / 0.6);
  background: oklch(0.97 0.008 80 / 0.82);
  backdrop-filter: blur(10px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.18rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border: 1px solid oklch(0.18 0.012 260 / 0.08);
  border-radius: 0.45rem;
  background: var(--background);
  box-shadow: 0 1px 4px oklch(0.18 0.012 260 / 0.08);
  overflow: hidden;
}

.brand-mark img,
.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.header-meta a:hover {
  color: var(--foreground);
}

.header-link-button {
  min-height: 0;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
}

.header-link-button:hover {
  color: var(--foreground);
}

.header-meta span {
  width: 1px;
  height: 1rem;
  background: var(--border);
}

.header-meta p {
  margin: 0;
}

.hero-section {
  padding: clamp(2rem, 5vw, 4rem) 0 2rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.78fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.hero-main {
  display: grid;
  gap: 1.35rem;
  min-width: 0;
}

.hero-copy {
  display: grid;
  gap: 1rem;
  max-width: 760px;
  margin: 0;
}

.badge,
.result-badge,
.ai-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid oklch(0.18 0.012 260 / 0.1);
  border-radius: 999px;
  background: oklch(1 0 0 / 0.72);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 500;
}

.badge {
  margin: 0;
  padding: 0.45rem 0.8rem;
}

.badge span,
.ai-pill {
  color: var(--accent);
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(2.6rem, 5.8vw, 5.15rem);
  font-weight: 700;
  line-height: 0.98;
  overflow-wrap: break-word;
}

h1 em {
  color: oklch(0.18 0.012 260 / 0.7);
  font-weight: 500;
}

.hero-subtitle {
  max-width: 660px;
  margin: 0;
  color: var(--muted-foreground);
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 300;
  line-height: 1.7;
}

.input-card {
  width: 100%;
  min-width: 0;
  max-width: 760px;
  overflow: hidden;
  border: 1px solid oklch(0.88 0.01 80 / 0.6);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: var(--shadow-elegant);
}

.source-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid oklch(0.88 0.01 80 / 0.6);
}

.tab-button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: oklch(0.93 0.012 80 / 0.3);
  color: var(--muted-foreground);
  font-weight: 500;
}

.tab-button svg {
  width: 1rem;
  height: 1rem;
}

.tab-button.is-active {
  margin-bottom: -1px;
  border-bottom-color: var(--foreground);
  background: var(--card);
  color: var(--foreground);
}

.creator-body {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
}

.source-form {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}

.source-form.is-active {
  display: flex;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.input-wrap {
  position: relative;
  display: block;
}

.input-wrap svg {
  position: absolute;
  top: 50%;
  left: 0.875rem;
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
  transform: translateY(-50%);
}

input,
textarea {
  width: 100%;
  border: 1px solid oklch(0.88 0.01 80 / 0.8);
  border-radius: 0.75rem;
  background: var(--background);
  color: var(--foreground);
  padding: 0 0.9rem;
  outline: none;
}

input {
  min-height: 3rem;
}

textarea {
  min-height: 4.5rem;
  padding-top: 0.8rem;
  line-height: 1.45;
  resize: vertical;
}

.input-wrap input {
  padding-left: 2.45rem;
}

input::placeholder,
textarea::placeholder {
  color: oklch(0.52 0.012 260 / 0.5);
}

input:focus,
textarea:focus {
  border-color: oklch(0.18 0.012 260 / 0.4);
  box-shadow: 0 0 0 3px oklch(0.20 0.015 260 / 0.12);
}

.form-helper,
.privacy-note {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.78rem;
  line-height: 1.45;
}

.form-helper {
  text-align: center;
}

.privacy-note {
  border-top: 1px solid oklch(0.88 0.01 80 / 0.55);
  padding-top: 0.2rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  border: 1px solid oklch(0.88 0.01 80 / 0.7);
  border-radius: 0.8rem;
  background: oklch(0.93 0.012 80 / 0.44);
}

.trust-strip span {
  display: grid;
  min-height: 2.7rem;
  place-items: center;
  border-right: 1px solid oklch(0.88 0.01 80 / 0.62);
  color: var(--muted-foreground);
  padding: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.trust-strip span:last-child {
  border-right: 0;
}

.hero-proof {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.hero-mockup {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.hero-mockup img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid oklch(0.88 0.01 80 / 0.75);
  border-radius: 1rem;
  box-shadow: var(--shadow-elegant);
  object-fit: cover;
}

.hero-mockup figcaption {
  color: var(--muted-foreground);
  font-size: 0.78rem;
  line-height: 1.45;
}

.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.hero-proof-grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid oklch(0.88 0.01 80 / 0.7);
  border-radius: 0.85rem;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.hero-proof-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-proof-grid span {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  border: 1px solid oklch(0.88 0.01 80 / 0.7);
  border-radius: 999px;
  background: oklch(1 0 0 / 0.86);
  color: var(--foreground);
  padding: 0.32rem 0.52rem;
  font-size: 0.68rem;
  font-weight: 600;
}

.upload-box {
  display: grid;
  min-height: 13rem;
  place-items: center;
  gap: 0.75rem;
  border: 2px dashed var(--border);
  border-radius: 0.75rem;
  background: transparent;
  padding: 1.5rem;
  text-align: center;
  text-transform: none;
}

.upload-box:hover {
  border-color: oklch(0.18 0.012 260 / 0.3);
  background: oklch(0.18 0.012 260 / 0.03);
}

.upload-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 999px;
  background: var(--secondary);
  color: oklch(0.18 0.012 260 / 0.7);
}

.upload-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.upload-box strong {
  color: var(--foreground);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.upload-box small {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted-foreground);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-box input {
  display: none;
}

.primary-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 0.75rem;
  padding: 0 1rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

.primary-button {
  border: 1px solid var(--foreground);
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-elegant);
}

.primary-button:hover:not(:disabled) {
  background: oklch(0.20 0.015 260 / 0.85);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.outline-button {
  border: 1px solid oklch(0.18 0.012 260 / 0.2);
  background: transparent;
  color: oklch(0.18 0.012 260 / 0.7);
}

.outline-button:hover:not(:disabled) {
  border-color: oklch(0.18 0.012 260 / 0.4);
  background: oklch(0.18 0.012 260 / 0.05);
  color: var(--foreground);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
  transform: none;
}

.result-panel {
  position: relative;
  display: none;
  gap: 0.9rem;
  padding-top: 0.35rem;
}

.result-panel.is-visible {
  display: grid;
  animation: fade-up 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.result-badge {
  width: fit-content;
  max-width: 100%;
  padding: 0.45rem 0.75rem;
}

.result-badge svg {
  width: 0.95rem;
  height: 0.95rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

.preview-tile {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.preview-tile p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-pill {
  padding: 0.15rem 0.45rem;
  border-color: oklch(0.68 0.06 55 / 0.35);
  background: oklch(0.68 0.06 55 / 0.1);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.preview-badge {
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  background: var(--secondary);
  color: var(--muted-foreground);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.placeholder-box,
.canvas-frame {
  display: grid;
  aspect-ratio: 1;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid oklch(0.88 0.01 80 / 0.6);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-card);
}

.placeholder-box {
  background: var(--secondary);
  color: var(--muted-foreground);
  background-position: center;
  background-size: cover;
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}

.placeholder-box.has-image {
  background-color: var(--secondary);
}

.placeholder-box.is-hidden {
  display: none;
}

.sketch-paper {
  background-color: oklch(0.985 0.005 80);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 27px,
    oklch(0.85 0.008 80 / 0.3) 28px
  );
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.status-bar {
  display: flex;
  justify-content: flex-end;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.loading-panel {
  position: absolute;
  inset: 2.35rem 0 1.5rem;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 1rem;
  border: 1px solid oklch(0.88 0.01 80 / 0.75);
  border-radius: 0.85rem;
  background:
    linear-gradient(115deg, oklch(1 0 0 / 0.9), oklch(0.97 0.008 80 / 0.92)),
    repeating-linear-gradient(0deg, transparent, transparent 27px, oklch(0.85 0.008 80 / 0.22) 28px);
  box-shadow: var(--shadow-elegant);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.error-panel {
  position: absolute;
  inset: 2.35rem 0 1.5rem;
  z-index: 5;
  display: grid;
  place-items: center;
  gap: 0.75rem;
  border: 1px solid oklch(0.55 0.18 25 / 0.18);
  border-radius: 0.85rem;
  background: oklch(1 0 0 / 0.96);
  box-shadow: var(--shadow-elegant);
  padding: 1.5rem;
  text-align: center;
}

.error-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 999px;
  background: oklch(0.55 0.18 25 / 0.1);
  color: var(--destructive);
}

.error-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.error-panel h2 {
  margin: 0;
  font-size: 1.25rem;
}

.error-panel p {
  max-width: 24rem;
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
}

.loading-panel.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.loading-panel h2 {
  margin: 0 0 0.9rem;
  font-size: 1.35rem;
  font-weight: 600;
  text-align: center;
}

.loading-rings {
  position: relative;
  display: grid;
  width: 5rem;
  height: 5rem;
  margin: 0 auto;
  place-items: center;
}

.loading-rings span {
  position: absolute;
  border-radius: 999px;
}

.loading-rings span:first-child {
  inset: 0;
  border: 2px solid oklch(0.18 0.012 260 / 0.1);
  border-top-color: oklch(0.18 0.012 260 / 0.55);
  animation: spin-slow 3s linear infinite;
}

.loading-rings span:nth-child(2) {
  inset: 0.7rem;
  border: 1px solid oklch(0.18 0.012 260 / 0.18);
  border-bottom-color: var(--accent);
  animation: spin-slow 2s linear infinite reverse;
}

.loading-rings svg {
  width: 1.65rem;
  height: 1.65rem;
  color: oklch(0.18 0.012 260 / 0.72);
  animation: pulse-soft 2s ease-in-out infinite;
}

.loading-steps {
  display: grid;
  gap: 0.55rem;
  min-width: min(18rem, calc(100vw - 5rem));
  margin: 0;
  padding: 0;
  color: var(--muted-foreground);
  font-size: 0.82rem;
  line-height: 1.4;
  list-style: none;
}

.loading-steps li {
  position: relative;
  padding-left: 1.6rem;
  opacity: 0.28;
}

.loading-steps li::before {
  position: absolute;
  top: 0.15rem;
  left: 0;
  display: grid;
  width: 0.82rem;
  height: 0.82rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  content: "";
}

.loading-steps li.is-active {
  color: var(--foreground);
  opacity: 1;
}

.loading-steps li.is-active::before {
  border-top-color: transparent;
  animation: spin-slow 1s linear infinite;
}

.loading-steps li.is-complete {
  opacity: 0.52;
}

.loading-steps li.is-complete::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--card);
}

.actions {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
}

.actions.is-visible {
  display: grid;
}

.print-order-panel {
  display: grid;
  gap: 1.25rem;
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 0;
}

.print-order-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.print-order-heading h2 {
  margin: 0.3rem 0 0;
  font-size: 1.65rem;
}

.icon-button {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--foreground);
  font-size: 1.35rem;
}

.print-order-panel form,
.print-order-panel fieldset {
  display: grid;
  gap: 0.85rem;
}

.print-order-panel fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}

.print-order-panel legend {
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.print-product-options,
.shipping-rates {
  display: grid;
  gap: 0.55rem;
}

.print-product-option,
.shipping-rate {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--secondary);
  padding: 0.8rem;
  cursor: pointer;
}

.print-product-option:has(input:checked),
.shipping-rate:has(input:checked) {
  border-color: var(--foreground);
  background: oklch(0.97 0.008 80);
}

.print-product-option span,
.shipping-rate span {
  display: grid;
  gap: 0.12rem;
}

.print-product-option small,
.shipping-rate small,
.print-order-note,
#printOrderStatus {
  color: var(--muted-foreground);
  font-size: 0.8rem;
  line-height: 1.5;
}

.print-address-fields {
  grid-template-columns: 1fr 1fr;
}

.print-address-fields legend {
  grid-column: 1 / -1;
}

.print-address-fields label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.print-address-fields label:nth-of-type(3),
.print-address-fields label:nth-of-type(4) {
  grid-column: 1 / -1;
}

.print-address-fields input,
.print-address-fields select {
  min-width: 0;
  min-height: 2.8rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card);
  color: var(--foreground);
  padding: 0 0.75rem;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.print-order-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.print-order-actions p {
  margin: 0;
}

.print-order-note {
  margin: -0.2rem 0 0;
}

.feedback-panel {
  display: grid;
  gap: 0.65rem;
  border: 1px solid oklch(0.88 0.01 80 / 0.6);
  border-radius: 0.85rem;
  background: oklch(0.93 0.012 80 / 0.45);
  padding: 0.9rem;
}

.feedback-panel p,
.feedback-panel span {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.82rem;
}

.feedback-panel div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.content-section {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.gallery-section {
  display: grid;
  gap: 1.25rem;
}

.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.gallery-heading h2 {
  max-width: 680px;
  margin: 0.4rem 0 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
}

.gallery-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.gallery-sales-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid oklch(0.88 0.01 80 / 0.7);
  border-radius: 0.85rem;
  background: oklch(1 0 0 / 0.58);
}

.gallery-sales-strip span {
  padding: 0.85rem 1rem;
  border-right: 1px solid oklch(0.88 0.01 80 / 0.65);
  color: var(--muted-foreground);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.gallery-sales-strip span:last-child {
  border-right: 0;
}

.sales-gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1rem;
}

.gallery-card {
  display: grid;
  gap: 1rem;
  min-width: 0;
  border: 1px solid oklch(0.88 0.01 80 / 0.65);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.gallery-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.gallery-card a {
  display: block;
}

.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--secondary);
  object-fit: cover;
}

.gallery-card > div {
  display: grid;
  gap: 0.55rem;
  padding: 0 1rem 1rem;
}

.gallery-card h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.15;
}

.gallery-card p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.86rem;
  line-height: 1.65;
}

.gallery-use {
  color: var(--accent) !important;
  font-size: 0.72rem !important;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-card-large {
  grid-row: span 2;
}

.gallery-card-large img {
  aspect-ratio: 4 / 4.6;
}

.gallery-card-large h3 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
}

.gallery-proof-card {
  align-content: center;
  min-height: 100%;
  padding: 1.25rem;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 27px, oklch(0.85 0.008 80 / 0.32) 28px),
    var(--card);
}

.gallery-proof-card .primary-button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  margin-top: 0.25rem;
}

.framed-preview-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3rem);
}

.framed-preview-copy {
  display: grid;
  gap: 1rem;
  align-content: center;
}

.framed-preview-copy h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
}

.framed-preview-copy p:not(.eyebrow) {
  max-width: 520px;
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.96rem;
  line-height: 1.8;
}

.framed-preview-copy .primary-button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  margin-top: 0.25rem;
}

.room-mockup {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.room-mockup img {
  display: block;
  width: 100%;
  border: 1px solid oklch(0.88 0.01 80 / 0.75);
  border-radius: 1rem;
  box-shadow: var(--shadow-elegant);
}

.room-mockup figcaption {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: right;
}

.divider-ornament {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: oklch(0.65 0.01 260);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.divider-ornament::before,
.divider-ornament::after {
  flex: 1;
  height: 1px;
  content: "";
  background: linear-gradient(to right, transparent, oklch(0.85 0.01 80), transparent);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-card,
.agent-card {
  border: 1px solid oklch(0.88 0.01 80 / 0.6);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
}

.feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.step-number {
  color: oklch(0.18 0.012 260 / 0.16);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.feature-card h2 {
  margin: 0.75rem 0 0.45rem;
  font-size: 1.25rem;
}

.feature-card p,
.agent-card p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.7;
}

.agent-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--card);
}

.agent-card::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.04;
  background-image:
    linear-gradient(currentColor 0.5px, transparent 0.5px),
    linear-gradient(90deg, currentColor 0.5px, transparent 0.5px);
  background-size: 28px 28px;
}

.agent-card > * {
  position: relative;
}

.eyebrow {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.agent-card h2 {
  max-width: 720px;
  margin: 0.5rem 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.agent-card p:last-child {
  max-width: 620px;
}

.agent-card .primary-button {
  position: relative;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5rem;
  padding: 2rem 0;
  border-top: 1px solid oklch(0.88 0.01 80 / 0.6);
  color: var(--muted-foreground);
  font-size: 0.8rem;
}

.site-footer p {
  margin: 0;
}

.admin-page {
  background: var(--background);
}

.admin-login-page {
  min-height: 100vh;
  background: var(--background);
}

.admin-login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.25rem;
}

.admin-login-card {
  display: grid;
  width: min(100%, 440px);
  gap: 1.5rem;
  border: 1px solid oklch(0.88 0.01 80 / 0.65);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: var(--shadow-elegant);
  padding: clamp(1.25rem, 4vw, 2rem);
}

.admin-login-card h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(2.25rem, 8vw, 3.5rem);
  line-height: 1;
}

.admin-login-card p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  line-height: 1.65;
}

.admin-login-form {
  display: grid;
  gap: 0.875rem;
}

.admin-login-status {
  min-height: 1.4rem;
}

.admin-shell {
  width: min(1180px, calc(100vw - 2.5rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.admin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-hero h1 {
  margin-top: 0.75rem;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.admin-stats article,
.admin-panel {
  border: 1px solid oklch(0.88 0.01 80 / 0.65);
  border-radius: 0.85rem;
  background: oklch(1 0 0 / 0.82);
  box-shadow: var(--shadow-card);
}

.admin-stats article {
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
}

.admin-stats span,
.admin-table span,
.admin-panel-header p {
  color: var(--muted-foreground);
  font-size: 0.78rem;
}

.admin-stats strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.admin-panel {
  overflow: hidden;
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid oklch(0.88 0.01 80 / 0.65);
  padding: 1rem;
}

.admin-panel-header h2 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
}

.admin-panel-header p {
  margin: 0;
}

.admin-printful-status {
  margin: 0;
  padding: 0 1rem 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.78rem;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid oklch(0.88 0.01 80 / 0.55);
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted-foreground);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-table td {
  font-size: 0.86rem;
}

.admin-table td strong,
.admin-table td span {
  display: block;
}

.admin-payment-cell {
  min-width: 13rem;
}

.admin-payment-cell span {
  color: var(--muted-foreground);
  font-size: 0.78rem;
  line-height: 1.35;
}

.admin-message {
  max-width: 12rem;
  color: var(--foreground);
  font-family: Caveat, "Bradley Hand", "Segoe Script", cursive;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.05;
}

.admin-thumb {
  display: block;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--secondary);
}

.admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-quality,
.admin-review {
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  background: var(--secondary);
  color: var(--muted-foreground);
}

.admin-quality.good {
  border-color: oklch(0.58 0.11 145 / 0.35);
  background: oklch(0.58 0.11 145 / 0.09);
  color: oklch(0.42 0.1 145);
}

.admin-quality.retry {
  border-color: oklch(0.68 0.06 55 / 0.45);
  background: oklch(0.68 0.06 55 / 0.12);
  color: oklch(0.42 0.08 55);
}

.admin-review.approved {
  border-color: oklch(0.58 0.11 145 / 0.35);
  background: oklch(0.58 0.11 145 / 0.09);
  color: oklch(0.42 0.1 145);
}

.admin-review.rejected {
  border-color: oklch(0.55 0.18 25 / 0.28);
  background: oklch(0.55 0.18 25 / 0.08);
  color: var(--destructive);
}

.admin-review.retry_queued {
  border-color: oklch(0.68 0.06 55 / 0.45);
  background: oklch(0.68 0.06 55 / 0.12);
  color: oklch(0.42 0.08 55);
}

.admin-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.admin-review-actions button {
  min-height: 1.8rem;
  border: 1px solid oklch(0.18 0.012 260 / 0.18);
  border-radius: 999px;
  background: transparent;
  color: var(--muted-foreground);
  padding: 0 0.55rem;
  font-size: 0.72rem;
}

.admin-review-actions button:hover:not(:disabled) {
  border-color: oklch(0.18 0.012 260 / 0.35);
  color: var(--foreground);
}

.admin-empty {
  padding: 3rem 1rem;
  color: var(--muted-foreground);
  text-align: center;
}

.prompt-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.75fr);
  gap: 1rem;
  padding: 1rem;
}

.prompt-editor,
.prompt-test {
  display: grid;
  gap: 0.8rem;
}

.prompt-editor label,
.prompt-test h3,
.prompt-history h3 {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prompt-editor textarea,
.prompt-editor input {
  width: 100%;
  border: 1px solid oklch(0.88 0.01 80 / 0.75);
  border-radius: 0.65rem;
  background: var(--card);
  color: var(--foreground);
  font: inherit;
  padding: 0.85rem;
}

.prompt-editor textarea {
  min-height: 15rem;
  resize: vertical;
}

.prompt-editor-row {
  display: grid;
  gap: 0.45rem;
}

.prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.prompt-test-upload {
  min-height: 9rem;
  padding: 1rem;
}

.prompt-test p {
  margin: 0;
  color: var(--muted-foreground);
}

.prompt-test img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--secondary);
}

.prompt-history {
  border-top: 1px solid oklch(0.88 0.01 80 / 0.65);
  padding: 1rem;
}

#promptVersions {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.75rem;
}

.prompt-version-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.8rem;
}

.prompt-version-card.is-active {
  border-color: oklch(0.58 0.11 145 / 0.35);
  background: oklch(0.58 0.11 145 / 0.06);
}

.prompt-version-card strong,
.prompt-version-card span {
  display: block;
}

.prompt-version-card span,
.prompt-version-card p {
  margin: 0.15rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.82rem;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-soft {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-fade-up {
  animation: fade-up 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-75 {
  animation-delay: 75ms;
}

.guides-section {
  display: grid;
  gap: 1.6rem;
}

.guide-preview-grid,
.guide-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-preview-card,
.guide-card,
.guide-summary,
.guide-rail-card,
.guide-cta {
  border: 1px solid oklch(0.88 0.01 80 / 0.85);
  border-radius: 1.5rem;
  background: oklch(1 0 0 / 0.82);
  box-shadow: 0 24px 42px -36px rgba(32, 28, 23, 0.45);
}

.guide-preview-card,
.guide-card {
  padding: 1.35rem;
}

.guide-card-image {
  display: block;
  margin: -1.35rem -1.35rem 1rem;
}

.guide-card-image img,
.guide-hero-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-card-image img {
  aspect-ratio: 16 / 10;
  border-radius: 1.5rem 1.5rem 0.9rem 0.9rem;
}

.guide-preview-card h3,
.guide-card h2,
.guide-card h3,
.guide-section h2,
.guide-summary h2,
.guide-cta h2,
.faq-item h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
}

.guide-preview-card h3 a,
.guide-card h2 a,
.guide-card h3 a,
.guide-rail-card a,
.guide-link {
  color: inherit;
  text-decoration: none;
}

.guide-preview-card p:last-child,
.guide-card p:last-child {
  margin-bottom: 0;
}

.guide-shell {
  width: min(100vw - 4rem, 1280px);
  margin: 0 auto;
  padding: 3rem 0 4.5rem;
  display: grid;
  gap: 2rem;
}

.guide-hero {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.8fr) minmax(18rem, 0.9fr);
  align-items: start;
}

.guide-hero-hub {
  grid-template-columns: minmax(0, 1fr);
}

.guide-hero-copy,
.guide-summary,
.guide-article,
.guide-rail-card,
.guide-cta {
  padding: 1.5rem;
}

.guide-hero-copy {
  border-radius: 1.75rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.58)),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 2.2rem,
      oklch(0.88 0.01 80 / 0.42) 2.2rem,
      oklch(0.88 0.01 80 / 0.42) 2.28rem
    );
  border: 1px solid oklch(0.88 0.01 80 / 0.85);
}

.guide-hero-figure {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  border-radius: 1.75rem;
  border: 1px solid oklch(0.88 0.01 80 / 0.85);
  background: oklch(1 0 0 / 0.82);
  box-shadow: 0 24px 42px -36px rgba(32, 28, 23, 0.45);
}

.guide-hero-figure img {
  aspect-ratio: 5 / 4;
}

.guide-hero-copy h1 {
  margin: 0.25rem 0 1rem;
  max-width: 14ch;
}

.guide-intro {
  max-width: 58rem;
  margin: 0;
  color: oklch(0.42 0.012 260);
  font-size: 1.08rem;
  line-height: 1.75;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.guide-actions .primary-button,
.guide-actions .outline-button {
  justify-content: center;
  min-width: 17rem;
  text-align: center;
}

.guide-summary h2 {
  margin-bottom: 0.9rem;
  font-size: 1.1rem;
}

.guide-highlights {
  background: oklch(0.98 0.008 80 / 0.8);
  border-radius: 1.1rem;
  padding: 1rem;
}

.guide-summary ul,
.guide-section ul {
  margin: 0;
  padding-left: 1.15rem;
}

.guide-summary li,
.guide-section li,
.guide-section p,
.faq-item p,
.guide-card p,
.guide-preview-card p,
.guide-rail-card a {
  color: oklch(0.42 0.012 260);
  line-height: 1.75;
}

.guide-body {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 0.7fr);
  align-items: start;
}

.guide-article {
  display: grid;
  gap: 1rem;
  background: oklch(1 0 0 / 0.82);
  border: 1px solid oklch(0.88 0.01 80 / 0.85);
  border-radius: 1.5rem;
  box-shadow: 0 24px 42px -36px rgba(32, 28, 23, 0.45);
}

.guide-section + .guide-section {
  padding-top: 0.25rem;
  border-top: 1px solid oklch(0.88 0.01 80 / 0.75);
}

.guide-section p {
  margin: 0.9rem 0 0;
}

.guide-rail {
  position: sticky;
  top: 5.5rem;
}

.guide-rail-card {
  display: grid;
  gap: 0.8rem;
}

.guide-rail-card a {
  font-weight: 500;
}

.guide-link-cluster {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-link-cluster a {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid oklch(0.88 0.01 80 / 0.8);
  border-radius: 1rem;
  background: oklch(1 0 0 / 0.72);
  color: inherit;
  text-decoration: none;
  line-height: 1.45;
}

.guide-cta {
  margin-top: 0.5rem;
}

.guide-cta p {
  color: oklch(0.42 0.012 260);
}

.guide-related {
  display: grid;
  gap: 1.2rem;
}

.guide-card h2,
.guide-card h3 {
  font-size: 1.35rem;
  line-height: 1.12;
}

.guide-link {
  display: inline-flex;
  margin-top: 0.7rem;
  font-weight: 600;
}

.faq-item + .faq-item {
  padding-top: 0.6rem;
  border-top: 1px solid oklch(0.88 0.01 80 / 0.75);
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  .hero-section,
  .content-section,
  .admin-shell {
    width: min(100vw - 1.25rem, 1280px);
  }

  .header-meta {
    display: none;
  }

  .hero-section {
    padding-top: 3rem;
  }

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

  .hero-copy {
    text-align: left;
  }

  h1 {
    max-width: 21rem;
    font-size: clamp(2rem, 8.4vw, 2.45rem);
    line-height: 1.02;
  }

  .tab-button {
    gap: 0.38rem;
    padding: 0 0.45rem;
    font-size: 0.94rem;
  }

  .hero-proof {
    order: -1;
    gap: 0.65rem;
  }

  .hero-mockup img {
    aspect-ratio: 16 / 10;
  }

  .hero-proof-grid {
    display: none;
  }

  .creator-body {
    padding: 1rem;
  }

  .preview-grid,
  .steps-grid,
  .admin-stats,
  .prompt-workbench,
  .sales-gallery-grid,
  .guide-preview-grid,
  .guide-grid,
  .guide-link-cluster,
  .gallery-sales-strip,
  .trust-strip,
  .actions,
  .print-address-fields {
    grid-template-columns: 1fr;
  }

  .print-address-fields label:nth-of-type(3),
  .print-address-fields label:nth-of-type(4) {
    grid-column: auto;
  }

  .trust-strip span {
    border-right: 0;
    border-bottom: 1px solid oklch(0.88 0.01 80 / 0.62);
  }

  .trust-strip span:last-child {
    border-bottom: 0;
  }

  .admin-hero,
  .gallery-heading,
  .framed-preview-section,
  .admin-panel-header,
  .guide-hero,
  .guide-body {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-shell {
    width: min(100vw - 1.25rem, 1280px);
    padding-top: 2rem;
  }

  .guide-hero,
  .guide-body {
    display: grid;
    grid-template-columns: 1fr;
  }

  .guide-rail {
    position: static;
  }

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

  .room-mockup figcaption {
    text-align: left;
  }

  .gallery-sales-strip span {
    border-right: 0;
    border-bottom: 1px solid oklch(0.88 0.01 80 / 0.65);
  }

  .gallery-sales-strip span:last-child {
    border-bottom: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }
}

.legal-footer-links {
  display: flex;
  gap: 1.25rem;
}

.legal-footer-links a,
.legal-footer-links button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted-foreground);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.legal-footer-links a:hover,
.legal-footer-links button:hover {
  color: var(--accent);
}

.cookie-consent {
  position: fixed;
  z-index: 60;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  max-width: 760px;
  border: 1px solid oklch(0.88 0.01 80 / 0.7);
  border-radius: 0.85rem;
  background: var(--background);
  box-shadow: var(--shadow-card);
  padding: 1rem 1.15rem;
}

.cookie-consent p {
  margin: 0;
  min-width: 220px;
  flex: 1;
  color: var(--muted-foreground);
  font-size: 0.85rem;
  line-height: 1.45;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-consent-actions .primary-button,
.cookie-consent-actions .outline-button {
  padding: 0 0.9rem;
  min-height: 2.4rem;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .cookie-consent {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent-actions {
    justify-content: flex-end;
  }
}

.legal-shell {
  width: min(100vw - 4rem, 860px);
  margin: 0 auto;
  padding: 3rem 0 4.5rem;
}

.legal-document {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  background: oklch(1 0 0 / 0.82);
  border: 1px solid oklch(0.88 0.01 80 / 0.85);
  border-radius: 1.5rem;
  box-shadow: 0 24px 42px -36px rgba(32, 28, 23, 0.45);
}

.legal-document h1 {
  margin: 0.25rem 0 0;
  font-family: "Playfair Display", Georgia, serif;
}

.legal-updated {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.85rem;
}

.legal-intro {
  margin: 0;
  color: oklch(0.42 0.012 260);
  font-size: 1.05rem;
  line-height: 1.7;
}

.legal-toc {
  padding: 1rem 1.25rem;
  background: oklch(0.98 0.008 80 / 0.8);
  border-radius: 1.1rem;
}

.legal-toc ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  columns: 2;
  column-gap: 1.5rem;
}

.legal-toc a {
  color: oklch(0.42 0.012 260);
  text-decoration: none;
  line-height: 1.9;
}

.legal-toc a:hover {
  color: var(--accent);
}

.legal-clause {
  padding-top: 1.25rem;
  border-top: 1px solid oklch(0.88 0.01 80 / 0.75);
}

.legal-clause:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.legal-clause h2 {
  margin: 0 0 0.6rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
}

.legal-clause p {
  margin: 0.7rem 0 0;
  color: oklch(0.42 0.012 260);
  line-height: 1.75;
}

.legal-clause ul {
  margin: 0.7rem 0 0;
  padding-left: 1.15rem;
}

.legal-clause li {
  color: oklch(0.42 0.012 260);
  line-height: 1.75;
}

@media (max-width: 640px) {
  .legal-shell {
    width: min(100vw - 2rem, 860px);
  }

  .legal-document {
    padding: 1.25rem;
  }

  .legal-toc ul {
    columns: 1;
  }
}
