/* Studio + cookie — aligned with pl.css brand */
.studio-grid {
  display: grid;
  gap: 1.35rem;
}
@media (min-width: 960px) {
  .studio-grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
}
.studio-panel {
  background: #fff;
  border: 1px solid #d7dee7;
  border-radius: 20px;
  padding: 1.25rem 1.25rem 1.35rem;
  box-shadow: 0 18px 40px -28px rgba(11, 31, 51, 0.35);
}
.studio-panel h3 {
  margin: 0 0 0.35rem;
  font-family: "Sora", "Figtree", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0b1f33;
}
.check-list {
  margin: 1.25rem 0 0;
  padding: 1.1rem 1.15rem 1.15rem;
  border: 1px solid #d7dee7;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 40%);
  display: grid;
  gap: 0.65rem;
  box-shadow: 0 8px 22px -20px rgba(11, 31, 51, 0.35);
}
.check-list__title {
  margin: 0 0 0.15rem;
  font-family: "Sora", "Figtree", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: #0b1f33;
}
.check-list label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.4;
  cursor: pointer;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  transition: background 0.15s ease;
}
.check-list label:hover { background: rgba(15, 118, 110, 0.06); }
.check-list input {
  appearance: none;
  -webkit-appearance: none;
  margin-top: 0.12rem;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  border: 1.5px solid #94a3b8;
  border-radius: 6px;
  background: #fff;
  display: grid;
  place-items: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.check-list input:checked {
  border-color: #0f766e;
  background: #0f766e;
}
.check-list input:checked::after {
  content: "";
  width: 0.32rem;
  height: 0.55rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-0.5px, -1px);
}
.doc-preview-box {
  margin-top: 1.1rem;
  padding: 1rem;
  border: 1px solid #d7dee7;
  border-radius: 16px;
  background: #fff;
}
.doc-preview-box h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.doc-preview-canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  background: #e2e8f0;
}
.pay-email {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(232, 238, 245, 0.82);
}
.pay-email input {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 0.78rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: #0b1f33;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pay-email input::placeholder { color: #94a3b8; }
.pay-email input:focus {
  border-color: #5eead4;
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.28);
}
.guarantee-note {
  margin: 1rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.07);
  border: 1px solid rgba(15, 118, 110, 0.14);
  font-size: 0.84rem;
  color: #3d5163;
  line-height: 1.45;
}
.guarantee-note a {
  color: #0f766e;
  font-weight: 700;
  text-decoration: none;
}
.guarantee-note a:hover { text-decoration: underline; }
.actions--cam {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.actions--cam #btn-shot { grid-column: 1 / -1; }
.actions--cam #btn-upload { grid-column: 1 / -1; }
@media (min-width: 520px) {
  .actions--cam {
    grid-template-columns: auto auto 1fr;
  }
  .actions--cam #btn-shot,
  .actions--cam #btn-upload { grid-column: auto; }
}
.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.85rem 0 1.1rem;
}
.order-form {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.order-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 650;
  font-size: 0.9rem;
}
.order-form input {
  border: 1px solid #d7dee7;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1rem;
}
.pack-lead {
  margin: 0 0 1.1rem;
  color: #5a6b7c;
  font-size: 0.95rem;
}
.stage {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  max-height: min(70vh, 560px);
  margin-inline: auto;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1f33;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  cursor: pointer;
  user-select: none;
}
.stage.stage--live { cursor: default; }
.stage.stage--preview { cursor: grab; }
.stage.stage--preview.is-dragging { cursor: grabbing; }
.stage-video,
.stage-preview,
.stage canvas#capture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0b1f33;
}
.stage-video {
  opacity: 0;
  z-index: 1;
  transform: scaleX(-1);
}
.stage.stage--live .stage-video { opacity: 1; }
.stage-preview {
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}
.stage.stage--preview .stage-preview {
  opacity: 1;
  pointer-events: none;
  object-fit: cover;
  transform-origin: center center;
}
.stage canvas#capture {
  display: none !important;
  z-index: 0;
}
.mask {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}
.mask-silhouette {
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 2.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.28));
}
.mask-shoulders {
  stroke: rgba(255, 255, 255, 0.42);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 6 7;
  vector-effect: non-scaling-stroke;
}
.mask-guide {
  stroke: #5eead4;
  stroke-width: 1.6;
  stroke-dasharray: 4 5;
  opacity: 0.95;
}
.mask-guide--chin {
  stroke: rgba(255, 255, 255, 0.72);
  stroke-dasharray: 3 4;
  opacity: 0.85;
  stroke-width: 1.3;
}
.mask-label {
  fill: #5eead4;
  font-size: 10px;
  font-family: "Figtree", "Segoe UI", sans-serif;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.92;
}
.mask-label--chin {
  fill: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  letter-spacing: 0.08em;
  opacity: 0.88;
}
.stage-cta {
  position: absolute;
  left: 50%;
  bottom: 3.4rem;
  top: auto;
  z-index: 3;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  color: #0b1f33;
  font-size: 0.9rem;
  font-weight: 700;
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  white-space: nowrap;
}
.stage:not(.stage--idle) .stage-cta { display: none; }
.hint {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.85rem;
  z-index: 3;
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0,0,0,0.55);
  pointer-events: none;
}
.stage.stage--idle .hint { opacity: 0.85; }
.edit-bar {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.45rem;
}
.edit-bar[hidden] { display: none !important; }
.edit-zoom {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0b1f33;
}
.edit-zoom input[type="range"] {
  width: 100%;
  accent-color: #0f766e;
}
.edit-tip {
  margin: 0;
  font-size: 0.8rem;
  color: #5a6b7c;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

/* Buttons */
.btn, .btn-app {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.72rem 1.05rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.btn:hover, .btn-app:hover { transform: translateY(-1px); }
.btn:disabled, .btn-app:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary, .btn-app-primary {
  background: #0f766e;
  color: #fff;
}
.btn-secondary, .btn-app-secondary {
  background: #e8eef5;
  color: #0b1f33;
}
.btn-ghost, .btn-app-ghost {
  background: #fff;
  color: #5a6b7c;
  border: 1px solid #d7dee7;
}

/* Pay CTA */
.pay-box {
  margin-top: 1rem;
  padding: 1.25rem 1.25rem 1.3rem;
  border-radius: 20px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(15, 118, 110, 0.45), transparent 55%),
    linear-gradient(145deg, #0b1f33 0%, #12324f 52%, #0f766e 130%);
  color: #fff;
  display: grid;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px -24px rgba(11, 31, 51, 0.75);
  overflow: hidden;
}
@media (min-width: 560px) {
  .pay-box {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1.15rem 1.35rem;
  }
}
.pay-box__copy {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}
.pay-box__copy strong {
  font-family: "Sora", "Figtree", sans-serif;
  font-size: 1.12rem;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.pay-box__copy > span {
  font-size: 0.86rem;
  color: rgba(232, 238, 245, 0.8);
  line-height: 1.4;
}
.btn-pay {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 1.05rem 1.55rem;
  background: #fff;
  color: #0b1f33;
  font-weight: 800;
  font-size: 1.05rem;
  font-family: "Sora", "Figtree", sans-serif;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  justify-self: stretch;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
@media (min-width: 560px) {
  .btn-pay { justify-self: end; align-self: end; }
}
.btn-pay:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #f0fdfa;
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.55);
}
.btn-pay:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.btn-pay #price-label {
  color: #0f766e;
}

.status, .status-line {
  margin-top: 0.75rem;
  min-height: 1.2rem;
  font-size: 0.9rem;
  color: #5a6b7c;
}
.status.error, .status-line.error { color: #ba1a1a; }
.status.ok, .status-line.ok { color: #0f766e; }

/* Pack list with document photos */
.formats { display: grid; gap: 0.65rem; }
.format-group__label {
  margin: 0.55rem 0 0.05rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7c8d;
}
.format-group__label:first-child { margin-top: 0; }
.format--pack {
  border-color: rgba(15, 118, 110, 0.35);
  background: linear-gradient(165deg, #f0fdfa 0%, #fff 55%);
}
.format {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 0.75rem 0.9rem;
  align-items: center;
  padding: 0.6rem 0.75rem 0.6rem 0.6rem;
  border: 1px solid #d7dee7;
  border-radius: 14px;
  background: #f8fafc;
}
.format__visual {
  position: relative;
  width: 104px;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: 0 8px 18px -12px rgba(11, 31, 51, 0.45);
  flex-shrink: 0;
}
.format__visual--portrait {
  aspect-ratio: 35 / 45;
  width: 88px;
}
.format__visual--sheet {
  aspect-ratio: 3 / 4;
  width: 78px;
}
.format__thumb,
.format__preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #fff;
}
.format__meta {
  min-width: 0;
}
.format__meta strong {
  display: block;
  font-family: "Sora", "Figtree", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0b1f33;
  line-height: 1.25;
}
.format__meta span {
  display: block;
  margin-top: 0.2rem;
  color: #5a6b7c;
  font-size: 0.8rem;
  line-height: 1.35;
}
.format__lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.format--choice {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.format--choice:hover {
  border-color: rgba(15, 118, 110, 0.45);
  background: #fff;
}
.format--choice:disabled {
  cursor: default;
}
.format--selected {
  border-color: rgba(15, 118, 110, 0.65);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.18);
}
.format--selected .format__lock {
  background: #0f766e;
  color: #fff;
}
.format__visual--pack {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #12324f, #0f766e);
}
.format__pack-ico {
  color: #fff;
  font-family: "Sora", "Figtree", sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
@media (max-width: 520px) {
  .format {
    grid-template-columns: 78px minmax(0, 1fr);
    grid-template-areas:
      "visual meta"
      "visual lock";
    align-items: start;
  }
  .format__visual,
  .format__visual--sheet { grid-area: visual; width: 78px; }
  .format__meta { grid-area: meta; }
  .format__lock,
  .format .btn {
    grid-area: lock;
    justify-self: start;
    margin-top: 0.35rem;
  }
}

/* cookie styles live in pl.css */

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #0b1f33;
}
.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  flex-shrink: 0;
  display: block;
}
.brand-lockup span {
  font-weight: 700;
  letter-spacing: -0.02em;
}

