/* Order brief — calm one-column, graphite pencil hairlines. Preview redesign. */
.order-page{
  --brief-rule-1:url('../assets/ui/graphite-rule-1.png');
  --brief-rule-2:url('../assets/ui/graphite-rule-2.png');
  --brief-rule-3:url('../assets/ui/graphite-rule-3.png');
  --brief-rule-4:url('../assets/ui/graphite-rule-4.png');
  --brief-document-frame:url('../assets/ui/graphite-document-frame.png');
  --brief-vertical:url('../assets/ui/graphite-vertical.png');
}
body.order-page{overflow:auto;overscroll-behavior-y:auto}
.order-page main{padding-top:calc(58px + env(safe-area-inset-top))}
.order-page .order-article{
  max-width:560px;
  margin:0;
  padding:48px 0 96px;
}
.order-page .order-head{margin:0 0 48px}
.order-page .order-head .small-label{display:block;margin-bottom:18px;color:#626266}
.order-page .order-head h1{
  font-size:clamp(36px,5vw,56px);font-weight:450;letter-spacing:-.05em;line-height:1.08;
  margin:0 0 20px;
}
.order-page .order-head>p{font-size:16px;line-height:1.7;margin:0 0 14px;max-width:48ch;color:var(--graphite)}
.order-page .order-terms-line{
  font-size:13px;line-height:1.7;color:#626266;margin:18px 0 0;max-width:48ch;
  padding-top:18px;
  background:var(--brief-rule-4) center top/100% 6px no-repeat;
}
.order-page a{color:inherit;text-underline-offset:4px}

/* Pencil how-it-works flow */
.order-flow{
  list-style:none;margin:0 0 56px;padding:0;
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 18px;
  position:relative;
}
.order-flow::before{
  content:"";position:absolute;left:6%;right:6%;top:28px;height:8px;
  background:var(--brief-rule-2) center/100% 8px no-repeat;
  opacity:.55;mix-blend-mode:multiply;pointer-events:none;
}
.order-flow-step{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0}
.order-flow-mark{
  width:56px;height:56px;flex:none;
  color:var(--graphite);
}
.order-flow-mark svg{display:block;width:100%;height:100%;overflow:visible}
.order-flow-step p{
  margin:0;font-size:12px;line-height:1.55;letter-spacing:.01em;color:#535358;max-width:14ch;
}
.order-flow-step .flow-num{
  display:block;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#8a8a8e;margin-bottom:4px;
}
@media(prefers-reduced-motion:no-preference){
  .order-flow-step{
    opacity:0;transform:translateY(8px);
    animation:order-flow-in .7s ease forwards;
  }
  .order-flow-step:nth-child(1){animation-delay:.05s}
  .order-flow-step:nth-child(2){animation-delay:.18s}
  .order-flow-step:nth-child(3){animation-delay:.31s}
  .order-flow-step:nth-child(4){animation-delay:.44s}
  .order-flow::before{
    transform:scaleX(0);transform-origin:left center;
    animation:order-flow-line .9s ease .2s forwards;
  }
  @keyframes order-flow-in{to{opacity:1;transform:none}}
  @keyframes order-flow-line{to{transform:scaleX(1)}}
}
@media(prefers-reduced-motion:reduce){
  .order-flow-step{opacity:1;transform:none}
}

/* Form steps */
.order-page #order-form{margin:0}
.order-page .order-required-note{font-size:12px;line-height:1.65;margin:0 0 28px;color:#626266}
.order-page .order-form-error{
  font-size:14px;line-height:1.7;color:#8b332b;margin:0 0 28px;padding:12px 0;
  background:var(--brief-rule-4) center top/100% 6px no-repeat;scroll-margin-top:100px;
}
.order-page .brief-section{
  padding:0;margin:0 0 48px;border:0;min-width:0;
}
.order-page .brief-section legend{
  width:100%;padding:28px 0 0;margin:0 0 22px;
  font-size:22px;line-height:1.3;font-weight:450;letter-spacing:-.02em;
  background:var(--brief-rule-2) center top/100% 8px no-repeat;
}
.order-page .brief-section legend .small-label{
  display:inline-block;margin-right:12px;vertical-align:middle;
  letter-spacing:.1em;font-size:10px;color:#626266;
}
.order-page .brief-section:nth-of-type(2n) legend{background-image:var(--brief-rule-3)}
.order-page .brief-help{display:block;font-size:13px;line-height:1.65;color:#626266;margin:0 0 16px}
.order-page .brief-field{margin:0 0 28px;min-width:0}
.order-page .brief-field label{
  display:block;font-size:14px;line-height:1.5;font-weight:450;margin-bottom:8px;
}
.order-page .brief-field label>span{font-size:11px;font-weight:400;color:#626266;margin-left:8px}
.order-page .brief-field input,
.order-page .brief-field textarea{
  display:block;box-sizing:border-box;width:100%;min-height:48px;
  padding:10px 2px 12px;border:0;border-radius:0;
  background:transparent var(--brief-rule-4) center bottom/100% 6px no-repeat;
  color:var(--graphite);font:inherit;font-size:16px;line-height:1.6;appearance:none;
}
.order-page .brief-field textarea{resize:vertical;min-height:140px;background-size:100% 6px}
.order-page .brief-field input:focus,
.order-page .brief-field textarea:focus{outline:none}
.order-page .brief-field input:focus-visible,
.order-page .brief-field textarea:focus-visible{
  outline:2px solid var(--graphite);outline-offset:4px;
}

/* Service rows — light selectable */
.order-page .service-list{display:flex;flex-direction:column;gap:0;margin:0 0 8px}
.order-page .service-choice,
.order-page .pattern-choice{
  display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:14px;align-items:start;
  padding:16px 0;cursor:pointer;font-size:14px;line-height:1.55;
  background:var(--brief-rule-4) center top/100% 5px no-repeat;
  position:relative;
}
.order-page .service-choice:last-of-type{margin-bottom:4px}
.order-page .service-choice input,
.order-page .pattern-choice input{
  grid-column:1;width:18px;height:18px;margin:2px 0 0;
  accent-color:var(--graphite);cursor:pointer;
}
.order-page .service-choice>span,
.order-page .pattern-choice>span{grid-column:2;min-width:0}
.order-page .service-choice strong{
  display:block;font-size:15px;font-weight:450;line-height:1.4;letter-spacing:-.01em;
}
.order-page .service-price{
  grid-column:3;justify-self:end;align-self:start;
  font-size:15px;font-weight:450;letter-spacing:-.02em;white-space:nowrap;padding-top:1px;
}
.order-page .service-choice .brief-help,
.order-page .pattern-choice .brief-help{margin:4px 0 0;font-size:12px}
.order-page .pattern-choice{
  grid-template-columns:22px minmax(0,1fr);margin-top:10px;padding-top:18px;
}
.order-page .service-choice:has(input:checked),
.order-page .pattern-choice:has(input:checked){background-color:#3a3a3e06}
.order-page .service-choice:has(input:focus-visible),
.order-page .pattern-choice:has(input:focus-visible){
  outline:2px solid var(--graphite);outline-offset:4px;
}

/* Drop zone — pencil document frame, light */
.order-page .order-drop{
  position:relative;padding:28px 22px 20px;background:transparent;
  transition:background .15s ease;
}
.order-page .order-drop::before{
  content:"";position:absolute;inset:0;
  border:12px solid transparent;
  border-image:var(--brief-document-frame) 96 / 12px stretch;
  mix-blend-mode:multiply;opacity:.32;pointer-events:none;
}
.order-page .order-drop.is-dragging{background:#3a3a3e08}
.order-page .order-drop.is-dragging::before{opacity:.7}
.order-page .order-drop>p:first-child{
  font-size:15px;line-height:1.5;margin:0 0 16px;font-weight:450;
}
.order-page .order-drop .brief-help{margin-top:16px;margin-bottom:0;font-size:12px;max-width:42ch}
.order-page .order-browse{
  display:inline-flex;align-items:center;justify-content:space-between;gap:20px;
  min-height:44px;padding:10px 20px;border:1px solid #3a3a3e55;border-radius:999px;
  background:none;color:inherit;font:inherit;font-size:13px;cursor:pointer;
}
.order-page .order-browse:hover{border-color:var(--graphite);background:#3a3a3e08}
.order-page #files-status{font-size:12px;margin:14px 0 0;color:#626266}
.order-page .order-files{list-style:none;padding:0;margin:10px 0 0}
.order-page .order-file{
  display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:center;
  padding:12px 0;
  background:var(--brief-rule-4) center top/100% 5px no-repeat;
}
.order-page .order-file-preview{
  display:flex;align-items:center;justify-content:center;width:48px;height:48px;
  object-fit:cover;background:#3a3a3e06;font-size:10px;color:#626266;overflow:hidden;
}
.order-page .order-file-preview img{width:100%;height:100%;object-fit:cover}
.order-page .order-file-name{font-size:13px;line-height:1.45;overflow-wrap:anywhere;margin:0}
.order-page .order-file-size{display:block;font-size:11px;color:#626266;margin-top:2px}
.order-page .order-file-remove{
  min-height:44px;padding:8px 2px;color:var(--graphite);background:none;border:0;
  font:inherit;font-size:12px;text-decoration:underline;text-underline-offset:4px;cursor:pointer;
}

.order-page .order-honey{display:none!important}
.order-page .order-reply-note{
  font-size:13px;line-height:1.7;color:#626266;margin:0 0 22px;max-width:46ch;
}
.order-page .order-summary{
  margin:0 0 22px;padding:18px 0 0;
  background:var(--brief-rule-2) center top/100% 8px no-repeat;
}
.order-page .order-summary .small-label{display:block;margin-bottom:8px;color:#626266}
.order-page .order-summary p{margin:0;font-size:15px;line-height:1.55;font-weight:450}
.order-page .order-summary .order-summary-extra{font-size:13px;font-weight:400;color:#626266;margin-top:4px}

.order-page .order-submit{margin-top:8px}
.order-page .order-submit .order-pill{
  display:inline-flex;align-items:center;justify-content:space-between;gap:28px;
  min-height:48px;padding:12px 26px;border:1px solid #3a3a3e;border-radius:999px;
  background:#3a3a3e;color:#ebeae6;font:inherit;font-size:13px;letter-spacing:.04em;
  cursor:pointer;box-shadow:0 8px 18px #3a3a3e1f;
}
.order-page .order-submit .order-pill:hover{background:#2a2a2e;color:#f4f3ef}
.order-page .order-submit .order-pill:disabled{opacity:.55;cursor:wait;box-shadow:none}
.order-page .order-submit #sending-status{margin:14px 0 0;font-size:13px;color:#626266}
.order-page .brief-privacy{max-width:46ch;font-size:12px;line-height:1.75;margin:20px 0 0;color:#626266}
.order-page .field-error{font-size:12px;line-height:1.65;color:#8b332b;margin:10px 0 0}
.order-page .brief-field [aria-invalid="true"],
.order-page .order-drop[aria-invalid="true"]{outline:1px solid #8b332b;outline-offset:3px}
.order-page :focus-visible{outline:2px solid var(--graphite);outline-offset:4px}
.order-page .order-confirmation{scroll-margin-top:110px;padding:24px 0 40px;max-width:560px}
.order-page .order-confirmation h2{font-size:28px;font-weight:450;letter-spacing:-.03em;margin:0 0 16px}
.order-page .order-confirmation p{font-size:16px;line-height:1.75;margin:0 0 20px}
.order-page [hidden]{display:none!important}

@media(max-width:900px){
  .order-flow{grid-template-columns:1fr 1fr;gap:22px 20px}
  .order-flow::before{display:none}
  .order-flow-step p{max-width:28ch}
}
@media(max-width:600px){
  .order-page .order-article{padding:28px 0 72px}
  .order-page .order-head{margin-bottom:36px}
  .order-page .order-head>p{font-size:15px}
  .order-flow{grid-template-columns:1fr;gap:20px;margin-bottom:44px}
  .order-flow-step{flex-direction:row;align-items:center;gap:14px}
  .order-flow-mark{width:44px;height:44px}
  .order-flow-step p{max-width:none}
  .order-page .brief-section{margin-bottom:36px}
  .order-page .brief-section legend{font-size:20px}
  .order-page .service-choice{grid-template-columns:22px minmax(0,1fr);gap:12px}
  .order-page .service-price{grid-column:2;justify-self:start;margin-top:2px;font-size:14px}
  .order-page .order-drop{padding:22px 16px 16px}
  .order-page .order-file{grid-template-columns:40px minmax(0,1fr) auto}
  .order-page .order-file-preview{width:40px;height:40px}
  .order-page .order-submit .order-pill{width:100%;justify-content:center}
}
@media(prefers-reduced-motion:reduce){
  .order-page *{transition:none!important;scroll-behavior:auto!important}
}
