:root {
  --ink: #171713;
  --ink-soft: #57574f;
  --paper: #f3f0e7;
  --paper-deep: #e8e3d7;
  --white: #fffef9;
  --acid: #dfff64;
  --blue: #3158ff;
  --line: rgba(23, 23, 19, 0.14);
  --shadow: 0 26px 70px rgba(45, 42, 30, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 4%, rgba(223, 255, 100, 0.34), transparent 28rem),
    linear-gradient(rgba(23, 23, 19, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 19, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 32px 32px, 32px 32px, auto;
  font-family:
    "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.page-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0 40px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.brand-mark {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
  gap: 3px;
  width: 32px;
  height: 32px;
  place-content: center;
  border-radius: 9px;
  background: var(--ink);
  transform: rotate(-3deg);
}

.brand-mark span {
  border-radius: 2px;
  background: var(--acid);
}

.brand-mark span:nth-child(2) {
  grid-row: span 2;
}

.header-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav > a {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

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

.site-nav .nav-cta {
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
}

.site-nav .nav-cta:hover {
  background: var(--blue);
  color: var(--white);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28a95b;
  box-shadow: 0 0 0 4px rgba(40, 169, 91, 0.12);
}

.hero {
  padding: clamp(70px, 9vw, 132px) 0 66px;
  max-width: 1020px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 1120px;
  font-size: clamp(56px, 9vw, 132px);
  font-weight: 700;
  letter-spacing: -0.074em;
  line-height: 0.88;
}

.hero h1 em {
  position: relative;
  display: inline-block;
  padding-right: 0.08em;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero h1 em::after {
  position: absolute;
  right: 0.03em;
  bottom: 0.02em;
  left: 0.02em;
  height: 0.08em;
  background: var(--acid);
  content: "";
  z-index: -1;
}

.hero-copy {
  max-width: 660px;
  margin: 38px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.55;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-facts span {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 249, 0.56);
  font-size: 12px;
  font-weight: 700;
}

.studio {
  margin: 0 0 96px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 28px;
  background: var(--ink);
  box-shadow: var(--shadow);
  color: var(--white);
}

.studio-heading {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 400px);
  gap: 32px;
  align-items: end;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.studio-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.studio .section-kicker {
  color: var(--acid);
}

.studio-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.55;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(420px, 1.28fr);
  gap: 28px;
  padding-top: 32px;
}

.control-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.drop-zone {
  display: flex;
  min-height: 190px;
  padding: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.12);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: var(--acid);
  background: rgba(223, 255, 100, 0.08);
  transform: translateY(-2px);
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.upload-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--acid);
  place-items: center;
}

.upload-icon svg {
  width: 22px;
  stroke: var(--ink);
  stroke-width: 1.8;
}

.drop-title {
  font-size: 17px;
  font-weight: 700;
}

.drop-subtitle {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  line-height: 1.45;
}

.file-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
  padding: 13px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.file-meta div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.file-meta strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sample-button {
  display: flex;
  width: 100%;
  margin-top: 11px;
  padding: 11px 3px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  align-items: center;
  justify-content: space-between;
  background: transparent;
  color: rgba(255, 255, 255, 0.67);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.sample-button:hover {
  color: var(--acid);
}

.sample-button svg {
  width: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.meta-label,
.option-label,
.option-value,
.range-labels {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.32);
  text-underline-offset: 3px;
}

.option-group {
  margin-top: 24px;
}

.option-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.option-value {
  color: var(--acid);
}

.model-card {
  display: flex;
  min-height: 56px;
  margin-top: 10px;
  padding: 10px 13px;
  border: 1px solid rgba(223, 255, 100, 0.42);
  border-radius: 10px;
  align-items: center;
  gap: 12px;
  background: rgba(223, 255, 100, 0.08);
}

.model-icon {
  display: grid;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex: 0 0 auto;
  background: var(--acid);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  place-items: center;
}

.model-card > span:last-child {
  display: grid;
  gap: 3px;
}

.model-card strong {
  font-size: 12px;
}

.model-card small {
  color: rgba(255, 255, 255, 0.44);
  font-size: 10px;
}

.range {
  width: 100%;
  height: 3px;
  margin: 20px 0 10px;
  border-radius: 999px;
  appearance: none;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.range::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  appearance: none;
  background: var(--acid);
  box-shadow: 0 0 0 1px var(--acid);
}

.range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
}

.range-labels {
  display: flex;
  justify-content: space-between;
}

.primary-button {
  display: flex;
  width: 100%;
  min-height: 54px;
  margin-top: 28px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  align-items: center;
  justify-content: space-between;
  background: var(--acid);
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    filter 160ms ease;
}

.primary-button:hover:not(:disabled) {
  filter: brightness(1.04);
  transform: translateY(-2px);
}

.primary-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.8);
  opacity: 0.36;
}

.primary-button svg,
.download-button svg {
  width: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.usage-note {
  margin: 14px 2px 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  line-height: 1.5;
}

.preview-panel {
  display: grid;
  min-height: 580px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.025) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.025) 75%),
    #11110e;
  background-position:
    0 0,
    0 12px,
    12px -12px,
    -12px 0;
  background-size: 24px 24px;
  place-items: center;
}

.empty-preview {
  max-width: 340px;
  padding: 40px;
  text-align: center;
}

.preview-art {
  position: relative;
  width: 210px;
  height: 170px;
  margin: 0 auto 26px;
}

.art-frame {
  position: absolute;
  width: 160px;
  height: 120px;
  border-radius: 14px;
}

.art-frame-back {
  top: 4px;
  left: 43px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transform: rotate(9deg);
}

.art-frame-front {
  bottom: 4px;
  left: 6px;
  display: grid;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(49, 88, 255, 0.25);
  transform: rotate(-4deg);
  place-items: center;
}

.art-frame-front svg {
  width: 78%;
  stroke: rgba(223, 255, 100, 0.88);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.empty-preview h3,
.loading-view h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.empty-preview p,
.loading-view p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.44);
  font-size: 12px;
  line-height: 1.55;
}

.result-view {
  width: 100%;
  height: 100%;
  min-height: 580px;
  padding: 20px;
}

.result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 3px 2px 18px;
}

.result-toolbar > div:first-child {
  display: grid;
  gap: 4px;
}

.result-label {
  color: var(--acid);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-toolbar strong {
  font-size: 13px;
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.download-button {
  display: inline-flex;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  align-items: center;
  gap: 8px;
  background: var(--acid);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.download-button svg {
  width: 15px;
}

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.comparison figure {
  display: grid;
  min-width: 0;
  margin: 0;
  gap: 8px;
}

.image-stage {
  display: grid;
  min-height: 420px;
  overflow: hidden;
  border-radius: 12px;
  background:
    linear-gradient(45deg, #252521 25%, transparent 25%),
    linear-gradient(-45deg, #252521 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #252521 75%),
    linear-gradient(-45deg, transparent 75%, #252521 75%),
    #1b1b18;
  background-position:
    0 0,
    0 8px,
    8px -8px,
    -8px 0;
  background-size: 16px 16px;
  place-items: center;
}

.image-stage img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
}

.comparison figcaption {
  padding: 0 3px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-figure figcaption {
  color: var(--acid);
}

.result-disclaimer {
  margin: 16px 3px 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  line-height: 1.5;
}

.print-intent {
  display: flex;
  min-height: 54px;
  margin-top: 16px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.print-intent button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--acid);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(223, 255, 100, 0.36);
  text-underline-offset: 3px;
}

.print-intent button:disabled {
  cursor: default;
  opacity: 0.55;
}

.print-intent p {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  text-align: right;
}

.loading-view {
  max-width: 340px;
  padding: 40px;
  text-align: center;
}

.loading-orbit {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 25px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  animation: spin 2.2s linear infinite;
}

.loading-orbit span {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: var(--acid);
}

.loading-orbit span:nth-child(1) {
  top: -6px;
  left: 38px;
}

.loading-orbit span:nth-child(2) {
  right: 7px;
  bottom: 13px;
  background: var(--blue);
}

.loading-orbit span:nth-child(3) {
  bottom: 8px;
  left: 14px;
  background: #ff8b5f;
}

.loading-bar {
  height: 3px;
  margin-top: 26px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.loading-bar span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: var(--acid);
  animation: loading 1.6s ease-in-out infinite;
}

.error-banner {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 120, 100, 0.32);
  border-radius: 12px;
  background: rgba(255, 120, 100, 0.1);
  color: #ffb5a7;
  font-size: 12px;
  line-height: 1.5;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 0 0 108px;
}

.principle {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.principle-number {
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-style: italic;
}

.principle h3 {
  margin: 24px 0 10px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.principle p {
  max-width: 360px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.home-tools {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1.28fr);
  gap: clamp(40px, 7vw, 94px);
  margin: 0 0 108px;
}

.home-tools-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4.3vw, 58px);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.home-tools-heading > p:last-child {
  max-width: 480px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.home-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.home-tool-card {
  display: flex;
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  flex-direction: column;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.home-tool-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.home-tool-card span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-tool-card strong {
  margin-top: 34px;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.home-tool-card p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.home-tool-card em {
  margin-top: auto;
  padding-top: 25px;
  color: var(--ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.guide {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(420px, 1.25fr);
  gap: clamp(40px, 7vw, 96px);
  margin: 0 0 108px;
  padding: clamp(30px, 5vw, 64px);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 18px 60px rgba(45, 42, 30, 0.08);
}

.guide-intro h2,
.faq-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 60px);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.guide-intro > p:last-child {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.guide-steps {
  display: grid;
  align-content: center;
}

.guide-steps article {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 18px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
}

.guide-steps article:last-child {
  border-bottom: 1px solid var(--line);
}

.guide-steps span {
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-style: italic;
}

.guide-steps h3 {
  margin: -4px 0 8px;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.guide-steps p {
  grid-column: 2;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.faq {
  display: grid;
  grid-template-columns: minmax(240px, 0.68fr) minmax(420px, 1.32fr);
  gap: clamp(36px, 7vw, 94px);
  margin-bottom: 104px;
}

.faq-heading {
  position: sticky;
  top: 30px;
  align-self: start;
}

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

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

.faq-list summary {
  position: relative;
  padding: 25px 44px 25px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  list-style: none;
}

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

.faq-list summary::after {
  position: absolute;
  top: 21px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  content: "+";
  font-size: 18px;
  font-weight: 400;
  line-height: 21px;
  text-align: center;
}

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

.faq-list details p {
  max-width: 680px;
  margin: -8px 0 26px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer {
  display: flex;
  min-height: 130px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-footer div {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.site-footer strong {
  font-size: 17px;
  letter-spacing: -0.04em;
}

.site-footer span,
.site-footer p {
  color: var(--ink-soft);
  font-size: 11px;
}

.site-footer p {
  max-width: 440px;
  margin: 1px 0 0;
  line-height: 1.55;
  text-align: right;
}

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

.footer-links a {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

.legal-page {
  width: min(760px, 100%);
  padding: clamp(64px, 9vw, 120px) 0;
}

.legal-page h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(46px, 7vw, 82px);
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.legal-page > p:first-of-type {
  max-width: 650px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.65;
}

.legal-page h2 {
  margin: 52px 0 14px;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.legal-page p,
.legal-page li {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.legal-page p {
  margin: 0 0 16px;
}

.legal-page ul {
  margin: 0 0 20px;
  padding-left: 20px;
}

.legal-page a {
  color: var(--blue);
}

.legal-page .legal-updated {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

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

@keyframes loading {
  0% {
    transform: translateX(-100%);
  }
  55% {
    transform: translateX(125%);
  }
  100% {
    transform: translateX(300%);
  }
}

@media (max-width: 900px) {
  .page-shell {
    padding: 0 22px;
  }

  .workspace,
  .studio-heading,
  .home-tools,
  .guide,
  .faq {
    grid-template-columns: 1fr;
  }

  .site-nav > a:not(.nav-cta),
  .site-nav .header-note {
    display: none;
  }

  .preview-panel {
    min-height: 460px;
  }

  .result-view {
    min-height: 460px;
  }

  .image-stage {
    min-height: 320px;
  }

  .principles {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-tools-grid {
    grid-template-columns: 1fr;
  }

  .principle {
    display: grid;
    grid-template-columns: 38px 1fr;
    column-gap: 12px;
  }

  .principle h3 {
    margin-top: 0;
  }

  .principle p {
    grid-column: 2;
  }

  .faq-heading {
    position: static;
  }
}

@media (max-width: 620px) {
  .page-shell {
    padding: 0 16px;
  }

  .site-header {
    min-height: 74px;
  }

  .header-note {
    font-size: 9px;
  }

  .hero {
    padding: 58px 0 46px;
  }

  .hero h1 {
    font-size: clamp(50px, 16vw, 76px);
  }

  .hero-copy {
    margin-top: 28px;
  }

  .studio {
    margin-right: -16px;
    margin-left: -16px;
    border-radius: 0;
  }

  .workspace {
    gap: 18px;
  }

  .control-panel {
    padding: 16px;
  }

  .preview-panel,
  .result-view {
    min-height: 400px;
  }

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

  .image-stage {
    min-height: 260px;
  }

  .result-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .print-intent {
    align-items: flex-start;
    flex-direction: column;
  }

  .print-intent p {
    text-align: left;
  }

  .result-actions {
    width: 100%;
    justify-content: space-between;
  }

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

  .footer-links {
    flex-wrap: wrap;
  }

  .site-footer p {
    text-align: left;
  }
}

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