:root {
  --blue: #a1bfca;
  --ink: #294b59;
  --paper: #f8f6f1;
  --line: #d6ddd9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px "Trebuchet MS",
    sans-serif;
}
header {
  max-width: 1400px;
  margin: auto;
  padding: 30px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
a {
  color: inherit;
}
.wordmark {
  font:
    bold 38px Georgia,
    serif;
  letter-spacing: -2px;
  text-decoration: none;
}
.wordmark span {
  display: block;
  font:
    10px "Trebuchet MS",
    sans-serif;
  letter-spacing: 1.2px;
  margin-top: 6px;
}
.beta {
  font-size: 10px;
  letter-spacing: 2px;
}
.beta i {
  font-size: 12px;
  background: #e5eceb;
  border-radius: 20px;
  padding: 6px 10px;
  letter-spacing: 0;
  margin-left: 10px;
}
main {
  max-width: 1240px;
  margin: auto;
  padding: 48px 44px 0;
}
.intro {
  position: relative;
  padding-bottom: 38px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: bold;
  margin: 0 0 16px;
}
h1 {
  font:
    normal clamp(48px, 5.8vw, 78px) / 1.02 Georgia,
    serif;
  letter-spacing: -3px;
  margin: 0;
}
h1 em {
  font-weight: normal;
  color: #668d9c;
}
.lede {
  position: absolute;
  left: 56%;
  bottom: 40px;
  font-size: 17px;
  line-height: 1.7;
  color: #58717b;
}
.workspace {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 65px;
  align-items: start;
}
.steps {
  padding-top: 8px;
}
.product {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.product img {
  object-fit: cover;
  border-radius: 5px;
}
.product .eyebrow {
  margin: 0 0 8px;
  font-size: 9px;
}
.product h2 {
  font:
    normal 20px/1.15 Georgia,
    serif;
  margin: 0;
}
.product p:last-child {
  font-size: 11px;
  color: #637c85;
  margin-bottom: 0;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 16px;
}
.section-title > span {
  font-size: 10px;
  border: 1px solid #9bb1b7;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
}
.section-title h2 {
  font:
    normal 22px Georgia,
    serif;
  margin: 0;
}
.section-title small {
  font:
    12px "Trebuchet MS",
    sans-serif;
  color: #6d8188;
}
.upload {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #edf1ef;
  border: 1px dashed #96aeb4;
  border-radius: 8px;
  padding: 21px 14px;
  cursor: pointer;
  text-align: center;
}
.upload svg {
  width: 31px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.2;
}
.upload strong {
  font-size: 13px;
}
.upload > span {
  font-size: 10px;
  color: #58717b;
}
.upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.upload:focus-within {
  outline: 3px solid #638b9c;
  outline-offset: 3px;
}
.measurement-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 70px;
  gap: 12px;
}
.measurement-fields label {
  font-size: 12px;
}
.measurement-fields small {
  display: block;
  font-size: 9px;
  margin: 5px 0 9px;
  color: #637c85;
}
input[type="number"],
select {
  width: 100%;
  border: 1px solid #bfcfce;
  background: transparent;
  border-radius: 4px;
  height: 44px;
  padding: 10px;
  font:
    16px "Trebuchet MS",
    sans-serif;
  color: var(--ink);
}
.note {
  font-size: 11px;
  line-height: 1.6;
  color: #627981;
  margin: 12px 0;
}
.consent {
  display: flex;
  gap: 9px;
  font-size: 10px;
  line-height: 1.6;
  margin: 20px 0;
}
.consent input {
  flex-shrink: 0;
  accent-color: var(--ink);
  width: 18px;
  height: 18px;
  margin: 2px 0;
}
button {
  cursor: pointer;
  font:
    13px "Trebuchet MS",
    sans-serif;
  min-height: 48px;
}
#generate {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 5px;
  padding: 16px 20px;
}
#generate span {
  font-size: 20px;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #7da5b5;
  outline-offset: 3px;
}
.status {
  font-size: 12px;
  line-height: 1.5;
  min-height: 18px;
}
.status.error {
  color: #8c362b;
}
.footnote {
  text-align: center;
  color: #71858b;
  font-size: 10px;
  line-height: 1.7;
}
.visual {
  position: relative;
}
.image-wrap {
  position: relative;
  background: var(--blue);
  border-radius: 180px 180px 6px 6px;
  overflow: hidden;
  min-height: 560px;
  aspect-ratio: 0.81;
}
.image-wrap > img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}
#image-badge {
  position: absolute;
  bottom: 22px;
  left: 24px;
  background: var(--paper);
  padding: 10px 13px;
  border-radius: 3px;
  font-size: 9px;
  letter-spacing: 1.6px;
}
.visual-caption {
  display: flex;
  justify-content: space-between;
  padding: 17px 0;
  font:
    italic 14px Georgia,
    serif;
  gap: 15px;
}
.visual-caption > span:last-child {
  font-size: 28px;
}
#working {
  position: absolute;
  inset: 0;
  background: #e7efeced;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 25px;
}
#working h2 {
  font:
    normal 29px Georgia,
    serif;
}
#working p {
  font-size: 13px;
  line-height: 1.7;
}
.scallop-loader {
  width: 70px;
  height: 35px;
  border-radius: 60px 60px 0 0;
  background: var(--blue);
  animation: breathe 1.6s infinite alternate;
}
@keyframes breathe {
  to {
    opacity: 0.35;
    transform: translateY(-8px);
  }
}
#result-actions {
  padding: 15px 0;
}
#result-actions button,
#result-actions > a {
  display: inline-block;
  border: 1px solid #abc0c5;
  border-radius: 4px;
  padding: 12px;
  margin: 0 8px 10px 0;
  background: transparent;
  font-size: 12px;
}
footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 50px;
  padding: 24px 0;
  font-size: 10px;
  color: #6d8188;
}
footer span:nth-child(2) {
  letter-spacing: 3px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  header {
    padding: 22px 24px;
  }
  .wordmark {
    font-size: 30px;
  }
  .wordmark span {
    font-size: 8px;
  }
  .beta {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .beta i {
    display: none;
  }
  main {
    padding: 30px 22px 0;
  }
  .intro {
    padding-bottom: 24px;
  }
  h1 {
    font-size: 57px;
  }
  .lede {
    position: static;
    font-size: 14px;
    line-height: 1.6;
    margin: 20px 0 0;
  }
  .desktop {
    display: none;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .visual {
    grid-row: 2;
  }
  .image-wrap {
    min-height: 0;
    aspect-ratio: 0.9;
    border-radius: 140px 140px 5px 5px;
  }
  .product {
    padding: 12px 0 20px;
  }
  .steps {
    padding: 0;
  }
  .measurement-fields {
    gap: 8px;
    grid-template-columns: 1fr 1fr 62px;
  }
  .consent {
    font-size: 11px;
  }
  .note {
    font-size: 11px;
  }
  footer {
    margin-top: 30px;
    gap: 10px;
  }
  footer span:last-child {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
}

.decals { border: 0; padding: 0; margin: 28px 0; min-width: 0; }
.decals legend { font: 22px Georgia, serif; }
.decals legend small { font: 12px "Trebuchet MS", sans-serif; }
.decal-none { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.decals input { accent-color: var(--ink); width: 18px; height: 18px; }
.decal-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.decal-card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; padding-bottom: 12px; }
.decal-card:has(input:checked) { outline: 2px solid var(--ink); background: #e7efef; }
.decal-card label { display: block; cursor: pointer; }
.decal-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.decal-card span { display: flex; align-items: center; gap: 5px; padding: 10px 6px; font-size: 12px; }
.decal-card small, .decal-card a { display: block; margin: 0 10px 6px; font-size: 11px; line-height: 1.5; }
.decal-card a { padding: 8px 0; }
#decal-reminder { padding: 14px; border: 1px solid var(--blue); border-radius: 6px; font-size: 13px; }
#decal-reminder button { color: var(--ink); background: transparent; border: 1px solid var(--blue); border-radius: 4px; margin: 4px 0; padding: 8px; }

.product > div { min-width: 0; }
.product select { max-width: 100%; width: 100%; margin-top: 6px; }
.product .note { max-height: 10rem; overflow: auto; }
