*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 500;
  color: #292524;
  background: #F7F1E8;
  line-height: 1.55;
  min-width: 320px;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid #B45309;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  padding: 10px 14px;
  background: #1C1917;
  color: #F7F1E8;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.atelier-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 448px;
  margin: 0 auto;
  padding: 18px 18px 8px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mono {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.wordmark p {
  margin: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.wordmark strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.wordmark em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  color: #78716C;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.age-pill {
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid #D6D3D1;
  font-size: 0.75rem;
  font-weight: 700;
}

.lead {
  max-width: 448px;
  margin: 0 auto;
  padding: 28px 18px 8px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #B45309;
}

.lead h1 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 8vw, 2.7rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.lead-copy {
  margin: 0;
  max-width: 34ch;
  color: #57534E;
}

.composer {
  max-width: 448px;
  margin: 0 auto;
  padding: 20px 18px 8px;
}

.amt-panel,
.term-panel {
  padding: 18px 16px;
  border: 1px solid #D6D3D1;
  background: #fffdf8;
  margin-bottom: 12px;
}

.panel-label {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #78716C;
}

.stepper {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.step-btn,
.btn,
.faq-q,
#termSelect {
  font: inherit;
}

.step-btn,
.btn {
  cursor: pointer;
}

.step-btn {
  width: 54px;
  min-height: 54px;
  border: 1px solid #1C1917;
  background: #F7F1E8;
  color: #1C1917;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.amount-figure {
  margin: 0;
  text-align: center;
  font-size: clamp(1.55rem, 7vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

#amountSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, #1C1917 var(--progress, 17%), #E7D8C5 var(--progress, 17%));
  margin: 2px 0 10px;
}

#amountSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1C1917;
  border: 2px solid #F7F1E8;
}

#amountSlider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1C1917;
  border: 2px solid #F7F1E8;
}

.ends,
.select-note,
.composer-note,
.ticket-fine,
.wait-sub {
  font-size: 0.84rem;
  color: #57534E;
}

.ends {
  display: flex;
  justify-content: space-between;
}

.select-shell {
  position: relative;
}

.select-shell::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #1C1917;
  border-bottom: 2px solid #1C1917;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

#termSelect {
  width: 100%;
  min-height: 54px;
  padding: 0 40px 0 14px;
  border: 1px solid #1C1917;
  background: #F7F1E8;
  color: #292524;
  font-weight: 700;
  appearance: none;
  -webkit-appearance: none;
}

.select-note {
  margin: 10px 0 0;
}

.composer-note {
  margin: 4px 0 14px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border: 1px solid #1C1917;
  text-decoration: none;
  font-weight: 800;
}

.btn-ink {
  background: #1C1917;
  color: #F7F1E8;
}

.btn-line {
  margin-top: 8px;
  background: transparent;
  color: #1C1917;
}

.btn:disabled {
  opacity: 0.5;
}

.wait-pane {
  text-align: center;
  padding: 36px 8px;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #B45309;
  animation: pulse 1s ease-in-out infinite;
}

.dots span:nth-child(2) {
  animation-delay: 0.16s;
}

.dots span:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes pulse {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1); }
}

.wait-title,
.ticket-status {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
}

.wait-sub {
  margin: 0;
}

.ticket {
  display: grid;
  grid-template-columns: 92px 1fr;
  border: 1.5px dashed #1C1917;
  background: #fffdf8;
  margin-bottom: 16px;
}

.ticket-stub {
  padding: 16px 10px;
  border-right: 1.5px dashed #1C1917;
  background: #E7D8C5;
  text-align: center;
}

.ticket-stub p {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.ticket-code {
  margin-top: 10px !important;
  font-size: clamp(1.4rem, 6vw, 1.8rem) !important;
  letter-spacing: 0.08em !important;
  text-transform: none !important;
}

.ticket-body {
  padding: 16px 14px;
}

.ticket-body dl {
  margin: 12px 0;
}

.ticket-body dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid #E7D8C5;
}

.ticket-body dt {
  color: #78716C;
  font-size: 0.82rem;
}

.ticket-body dd {
  margin: 0;
  font-weight: 800;
}

.ticket-fine {
  margin: 0;
}

.how-it-goes {
  margin-top: 36px;
}

.how-it-goes h2,
.ask h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-weight: 800;
}

.how-it-goes p {
  margin: 0 0 16px;
  max-width: 40ch;
}

.step-no {
  display: inline-block;
  min-width: 1.1em;
  margin-right: 6px;
  font-weight: 800;
  color: #B45309;
}

.perk-strips {
  margin-top: 12px;
}

.perk {
  padding: 22px 18px;
  border-top: 1px solid #D6D3D1;
}

.perk-sand {
  background: #E7D8C5;
}

.perk h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.perk p {
  margin: 0;
  max-width: 448px;
  color: #44403C;
}

.ask {
  max-width: 448px;
  margin: 0 auto;
  padding: 28px 18px 8px;
}

.ask-item {
  border-bottom: 1px solid #D6D3D1;
}

.faq-q {
  width: 100%;
  min-height: 54px;
  padding: 12px 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
  color: #1C1917;
}

.faq-a {
  display: none;
  padding: 0 0 14px;
}

.faq-a p {
  margin: 0;
  color: #57534E;
}

.ask-item.is-open .faq-a {
  display: block;
}

.atelier-foot {
  margin-top: 28px;
  padding: 28px 18px 40px;
  background: #F7F1E8;
  color: #1C1917;
  border-top: 1px solid #D6D3D1;
}

.atelier-foot p {
  max-width: 448px;
  margin: 0 auto 10px;
  font-size: 0.88rem;
}

.foot-name {
  font-weight: 800;
}

.atelier-foot nav {
  max-width: 448px;
  margin: 16px auto 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.atelier-foot a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #44403C;
}

.legal-page .atelier-top {
  border-bottom: 1px solid #D6D3D1;
  padding-bottom: 16px;
}

.legal-intro {
  max-width: 448px;
  margin: 0 auto;
  padding: 8px 18px 0;
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
  color: #1C1917;
}

.legal-intro h1 {
  margin: 8px 0 0;
  font-size: clamp(1.4rem, 6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.legal-sheet {
  max-width: 448px;
  margin: 16px auto 0;
  padding: 8px 18px 8px;
}

.legal-sheet h2 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
}

.legal-sheet p,
.legal-sheet li {
  font-size: 0.94rem;
  color: #44403C;
}

.legal-sheet ul {
  padding-left: 1.2em;
}

@media (min-width: 520px) {
  .ticket {
    grid-template-columns: 110px 1fr;
  }

  .atelier-foot nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
